how you will prevent inheritance is there any other way
other than inheritance?
Answer Posted / ravikiran
my marking the class as final
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between yielding and sleeping?
What is the difference between equals() and?
What is Major and importance difference between for and foreach loop ?
What is string :: npos?
What is off heap memory?
Is string a wrapper class?
What is a instance variable?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
What is busy spin, and why should you use it?
What is canonical name in java?
How do you use compareto method?
How do I know if java is installed?
How do you check whether the list is empty or not in java?
Can we have two methods in a class with the same name?
Can we catch more than one exception in single catch block?