what is the default value of a variable char?(If not
assigned)

Answers were Sorted based on User's Feedback



what is the default value of a variable char?(If not assigned)..

Answer / sarathchandra kotharu

\u000’ (or) a space

Is This Answer Correct ?    13 Yes 3 No

what is the default value of a variable char?(If not assigned)..

Answer / jai

When you try to print uninitialized char, you get the
compile time error.

"variable *** might not have been initialized" ERROR

Is This Answer Correct ?    9 Yes 3 No

what is the default value of a variable char?(If not assigned)..

Answer / ravi

default value of char is:\u0000

Is This Answer Correct ?    2 Yes 0 No

what is the default value of a variable char?(If not assigned)..

Answer / divya

The default value of variable char is '0'

Is This Answer Correct ?    4 Yes 14 No

Post New Answer

More Core Java Interview Questions

What is the purpose of extern variable?

0 Answers  


Why is stringbuffer not immutable?

0 Answers  


Explain about transient variables in java?

0 Answers  


What is class level lock ?

0 Answers  


How do I know if java is installed?

0 Answers  






What are wrapper classes in java?

0 Answers  


What is a jagged array in java?

0 Answers  


What is the difference between iterator and enumeration ?

0 Answers  


Compare overloading and overriding?

0 Answers  


What types of index data structures can you have in java?

0 Answers   Tech Mahindra,


How to override a equals() method and what is the use?

1 Answers  


Which sorting is used in arrays sort in java?

0 Answers  


Categories