51. |
What is the extension of compiled java classes?
|
||||||||
Answer:
Option (a) |
52. |
What is the range of short data type in Java?
|
||||||||
Answer:
Option (b) |
53. |
What is the range of byte data type in Java?
|
||||||||
Answer:
Option (a) |
54. |
Which of the following are legal lines of Java code?
1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L;
|
||||||||
Answer:
Option (d) |
55. |
An expression involving byte, int, and literal numbers is promoted to which of these?
|
||||||||
Answer:
Option (a) |
56. |
Which of these literals can be contained in float data type variable?
|
||||||||
Answer:
Option (b) |
57. |
What will be the output of the following Java statement?
class output { public static void main(String args[]) { double a, b,c; a = 3.0/0; b = 0/4.0; c=0/0.0; System.out.println(a); System.out.println(b); System.out.println(c); } }
|
||||||||
Answer:
Option (d) |
58. |
What is the numerical range of a char data type in Java?
|
||||||||
Answer:
Option (d) |
59. |
Which of these coding types is used for data type characters in Java?
|
||||||||
Answer:
Option (c) |
60. |
Which of these values can a boolean variable contain?
|
||||||||
Answer:
Option (a) |