Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


If you do not want your class to be inherited by any other class. What would you do?



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

Post New Answer

More Core Java Interview Questions

How do you reverse a string in java?

1 Answers  


How can you set an applet’s height and width as a percentage?

1 Answers  


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?

1 Answers   Satyam,


Write code to implement bubble sort in java?

1 Answers  


Can we write method inside a method in java?

1 Answers  


How do you create a sop?

1 Answers  


What are the six ways to use this keyword?

1 Answers  


What are java annotations?

1 Answers  


Difference between the paint() and repaint() methods?

1 Answers  


Explain about static imports in java?

1 Answers  


What is the difference between a Window and a Frame?

6 Answers   Infosys, ProKarma,


Categories