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

Can we override constructors?

0 Answers  


whatis Home interface and Remoteinterface? with example?

0 Answers   Saksoft,


Why we need Finally with try? pls expain with ur example..

3 Answers   BitWise, HDFC, TCS,


What is Overriding and how can it be used?

7 Answers   Consagous, Wipro,


What’s the difference between unit, integration and functional testing?

0 Answers  


Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?

7 Answers   Ericsson,


what are the differences between final,finally,finalize methods?

14 Answers   IBM,


What is the difference between an object-oriented programming language and object-based programming language?

0 Answers  


Explain Global variables in Packages?

4 Answers  


Is void a type?

0 Answers  


how to call one program .class file in another program

7 Answers   TCS,


What happens when heap memory is full?

0 Answers  


Categories