Programming MCQS - QUESTION DETAILS

What is the default value of a boolean variable in Java?
A. true
B. false
C. 0
D. 1

The default value of a boolean variable is 'false'.

Similar Questions

How do you declare a dynamic array in C?






What is the purpose of the 'strcmp' function in C?






How do you declare a function pointer in C?






What does the 'sizeof' operator return for a pointer variable?






Which of the following is not a valid C data type?






How do you define a constant pointer to a constant integer in C?






What is the purpose of the 'fflush' function in C?






What is the purpose of the 'fgets' function in C?






What is the purpose of the 'memcpy' function in C?






What is the role of the 'auto' keyword in C?