how you will prevent inheritance is there any other way
other than inheritance?
Answer Posted / raju
One way to prevent inhertance is final class
2) Using private Constructor in a class we can prevent
inhertance[Single ton class ]
Alternate of in hertance are
delegation,composition, aggrigration etc..
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
explain local datetime api in java8?
What is thread start?
Which is bigger double or float?
What are streams?
What are jee technologies?
What is another word for methodology?
What is use of static in java?
What is the difference between applet and application?
Is main a keyword in java?
What is nested interface?
What is java oops?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Why strings in java are called as immutable?
What is hasnext in java?