KnowledgeBoat Logo

Computer Applications

Consider the following code snippet:

float x = 8.25F;
int y;
y = (int) x;

What are the values of x and y?

  1. x= 8.25, y = 8
  2. x = 8.0, y = 8.0
  3. x = 8, y = 8.25
  4. x = 8, y = 8

Java Operators

9 Likes

Answer

x= 8.25, y = 8

Answered By

3 Likes


Related Questions