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
What do you mean by local class?
What is java autoboxing?
How to find the index of the largest number in an arraylist java?
Are functions objects in java?
What are autoboxing and unboxing? When does it occur?
Can you instantiate the math class?
What is a class reference?
What are nested classes in java?
What does the “static” keyword mean? Can you override private or static method in java?
How to calculate the length of a singly linked list in java?
Can we create our own wrapper class in java?
What is private public protected in java?
What do you understand by synchronization?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Why should I use abstract class?