If you do not want your class to be inherited by any other class. What would you do?
Answer / Girijesh Singh
To prevent a class from being inherited, you can declare it as final using the 'final' keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you reverse a string in java?
How can you set an applet’s height and width as a percentage?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,
What methods are used in Servlet?Applet communication?
Write code to implement bubble sort in java?
Can we write method inside a method in java?
How do you create a sop?
What are the six ways to use this keyword?
What are java annotations?
Difference between the paint() and repaint() methods?
Explain about static imports in java?
What is the difference between a Window and a Frame?