Java Programming and Technical Programming Definition

Q. What is mutable object and immutable object?

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

Read Solution (Total 1)

Java Other Question

Q. What is the difference between yielding and sleeping?

A. When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
Q. What is the purpose of Void class?

A. The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.