how you will prevent inheritance is there any other way
other than inheritance?
Answer Posted / marx
If you declare the class as a final,we cant inherit the
class.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
How to provide security in java
Is null == null in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is jvm? Why is java called the platform independent programming language?
How much ram can a 64 bit processor theoretically?
What is the use of singleton?
What is the arraylist in java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What's the base class of all exception classes?
What is a function in java?
What is the purpose of nested class in java?
Is empty string in java?
What do you mean by aggregation?
Is singleton thread safe in java?
How is tree Mirroring implemented?