Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 216. How many static init can you have ?

As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the class whose declarations appear textually after the use, even though these class variables are in scope.

Is it helpful? Add Comment View Comments
 

Ques 217. What is mutable object and immutable object?

If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, ') If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, ')

Is it helpful? Add Comment View Comments
 

Ques 218. What is the basic difference between string and stringbuffer object?

String is an immutable object. StringBuffer is a mutable object.

Is it helpful? Add Comment View Comments
 

Ques 219. What is the byte range?

128 to 127

Is it helpful? Add Comment View Comments
 

Ques 220. Can a double value be cast to a byte?

Yes, a double value can be cast to a byte.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2022 WithoutBook