A
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;
2. byte x = (byte)100L;
3. long y = (byte)100;
4. byte z = (byte)100L;
- Correct Answer - Option(D)
- Views: 11
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.