| 71. |
If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
|
||||||||
|
Answer:
Option (c) |
| 72. |
What will be the output of the following Java code?
class char_increment
{
public static void main(String args[])
{
char c1 = 'D';
char c2 = 84;
c2++;
c1++;
System.out.println(c1 + " " + c2);
}
}
|
||||||||
|
Answer:
Option (a) |
| 73. |
Java is a ........... language.
|
||||||||
|
Answer:
Option (b) |
| 74. |
How many primitive data types are there in Java?
|
||||||||
|
Answer:
Option (c) |
| 75. |
Size of int in Java is
|
||||||||
|
Answer:
Option (b) |
| 76. |
Which one of these lists contains only Java programming language keywords?
|
||||||||
|
Answer:
Option (b) |
| 77. |
Which is a reserved word in the Java programming language?
|
||||||||
|
Answer:
Option (b) |
| 78. |
Which is a valid keyword in java?
|
||||||||
|
Answer:
Option (a) |
| 79. |
Which is a valid declaration of a String?
|
||||||||
|
Answer:
Option (a) |
| 80. |
What will be the output of the program?
class Equals
{
public static void main(String [] args)
{
int x = 100;
double y = 100.1;
boolean b = (x = y);
System.out.println(b);
}
}
|
||||||||
|
Answer:
Option (c) |