61. What is the range of short data type in Java?
62. Is SimpleDateFormat thread safe?
63. Which of these can not be used for a variable name in Java?
64. Are enums are type-safe?
65. Which of the below data type doesn't support overloaded methods for +,-,* and /?
66. How to convert a String to a Date object?
67. What is BigDecimal.ONE?
68. What will be the error in the following Java code?
byte b = 50;
b = b * 50;
byte b = 50;
b = b * 50;
69. Which of these values can a boolean variable contain?
70. What will be the output of the following Java code?
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
Read More Section(Data Types and Variables)
Each Section contains maximum 100 MCQs question on Data Types and Variables. To get more questions visit other sections.