21.
What is the default value of a char variable in Java if it's not explicitly initialized?

22.
Which data type is used to represent integer values in Java?

23.
Which of the following is the correct way to declare a boolean variable named isJavaFun and initialize it to true in Java?

24.
What is the size of a float variable in Java?

25.
Which of the following is not a valid way to declare a long variable in Java?

26.
Which of the following is the correct way to declare a byte variable named myByte and initialize it to 5 in Java?

27.
What is the range of values that can be stored in a char variable in Java?

28.
Which data type is used to store numbers with decimal points and less precision than double?

29.
What is the default value of a boolean array element in Java if it's not explicitly initialized?

30.
Which of the following is not a valid way to declare a char variable in Java?

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.