What is an immutable object?
Answer / Nirbhaya Singh
An immutable object is an object whose state cannot be modified after it's created. Once created, its state remains constant throughout its lifetime, and any attempt to modify it will result in a new instance being created with the desired changes. This can help to prevent unintended side effects and simplify concurrency management.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why string is immutable or final in java
Define max and min heap, also the search time of heap.
Can inner class be public in java?
What are the differences between stringbuffer and stringbuilder?
How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?
What is gui programming?
Why does abstract class have constructor?
What is static synchronization?
Is there a case when finally will not execute?
What are the advantages of inner classes?
How can we make sure main() is the last thread to finish in java program?
Can arraylist contain null values?