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 CommentView 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 CommentView Comments
Ques 218. What is the basic difference between string and stringbuffer object?
String is an immutable object. StringBuffer is a mutable object.