Advertisements
Advertisements
प्रश्न
The default value of a boolean variable is ______.
पर्याय
False
0
false
True
MCQ
रिकाम्या जागा भरा
उत्तर
The default value of a boolean variable is false.
Explanation:
- In Java, the default value of a boolean variable is false.
- This is the value automatically assigned to boolean variables that are not explicitly initialized.
shaalaa.com
Tokens
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
Which of the following is not a logical operator?
Write short notes on Tokens.
Explain the types of literals?
Write short notes on the Arithmetic operator with examples.
Explain the Ternary operator with examples.
Write short notes on Escape sequences with examples.
Discuss in detail Tokens in Python.
If (a>b&&b>c) then largest number is ______.
Which of the following is a valid java keyword?
A student executes the following code to increase the value of a variable 'x' by 2.
He has written the following statement, which in incorrect.
x=+2;
What will be the correct statement?
- x+=2;
- x=2
- x=x+2;