Search Interview Questions
| 2796 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. boolean ---> false|
byte ----> 0
short ----> 0
int -----> 0
long ------> 0l
char -----> /u0000
float ------> 0.0f
double ----> 0.0d
any object reference ----> null
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve java data types default values|
Try 1 Question(s) Test
|What are the Wrapper classes available for primitive types ?|
|What are wrapper classes ?|
|What is casting?|
|What is Generalization and Specialization in terms of casting ?|
|Why Java is not considered pure OOP's language ?|
|Which data types are supported by JSON ?|
|What is the difference between float and double?|
|How do you prefer to store money values in your application ?|
|Difference between long.Class and Long.TYPE ?|