adplus-dvertising
frame-decoration

Question

What is the default character literal value assigned to a char variable in Java?

a.

'a'

b.

'0'

c.

'\u0000'

d.

0

Posted under Java Programming

Answer: (c).'\u0000'

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the default character literal value assigned to a char variable in Java?

Similar Questions

Discover Related MCQs

Q. What are the Type Conversions available in Java language?

Q. What is a higher data type in Java language?

Q. What is a Widening Type Conversion in Java?

Q. What is a Narrowing Type Conversion in Java?

Q. What is the result of a Narrowing type conversion?

Q. What is the result of a Widening Type Conversion in Java?

Q. Type promotion in Java usually refers to ____.

Q. Type Casting in Java usually refers to ____?

Q. Explicit Type Conversion in Java refers to ___?

Q. Implicit Type Conversion in Java is also called ___?

Q. Which are the compatible Data Types for Type Promotion or Type Casting?

Q. In a lossy Type Casting or Type Conversion, how is the number truncated to the target data type in Java?

Q. A boolean literal in Java can be type casted to which data type?

Q. If a variable or operand in an expression is type long, then all the operands are type promoted to which data type?

Q. An Array in Java is a collection of elements of ___ data type.

Q. The Java Virtual Machine (JVM) implements arrays as ___ type.

Q. Unlike C-Arrays, the Java-Arrays have ___.

Q. An array declaration in Java without initialization ___ memory.

Q. In Java language, an array index starts with ___.

Q. Which are the special symbols used to declare an array in Java?