A

Admin • 828.03K Points
Coach

Q. Which of the following are legal lines of Java code?

Code:
1. int w = (int)888.8;

2. byte x = (byte)100L;
3. long y = (byte)100;

4. byte z = (byte)100L;
  • (A) 1 and 2
  • (B) 2 and 3
  • (C) 3 and 4
  • (D) All statements are correct.
  • Correct Answer - Option(D)
  • Views: 11
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.