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...

can we declare private class in java file?

Answer Posted / veerendra

yes,we can declare if it is inner most class, but outer
class is not allowed because java supports inheritance
concept for reusing the properties from super class to sub
class,at that time the super class is private it wont access
inside,only public features we can reuse it, we can access
and execute through out the world, not private with in the
class onle we can access it.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add an element to a set in java?

975


Explain reverse a linked list iterative solution in java?

880


Can constructor be static or final?

1037


Which are different kinds of source code?

1051


How do you escape a string?

913


How to compare strings in java?

920


What are alternatives to java serialization?

1052


Difference between arraylist and vector.

1056


What is java volatile?

960


How you can force the garbage collection?

929


What are the parts of a method?

931


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1043


What is an empirical question?

913


What is an immutable class? How to create an immutable class?

1002


In a class implementing an interface, can we change the value of any variable defined in the interface?

1023