KnowledgeBoat Logo
|

Computer Applications

What are the types of casting shown by the following examples?

  1. double x = 15.2;
    int y = (int) x;

  2. int x = 12;
    long y = x;

Values & Data Types Java

ICSE 2013

34 Likes

Answer

  1. Explicit Type Casting
  2. Implicit Type Casting

Answered By

10 Likes


Related Questions