How to make a read-only class in java?
Answer / Archana Jain
In Java, a class can be made read-only by declaring all its methods as final and providing no setter methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is java instanceof operator?
what is meant by string pooling?
12 Answers Oracle, Polaris, Tribal Fusion, Wipro,
What is methods and methodology?
In which JDK version event-delegation model is introduced?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is return type in java?
What is the lifetime and scope of a variable?
What advantage do java's layout managers provide over traditional windowing systems?
What is the main purpose of serialization in java?
How do you take thread dump in java?
What is JVM and is it platform independent?
can rmi and corba based applications interact ?