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

What is the difference between a public and a non-public
class?

Answer Posted / javachi

public class is a class that can be accessed from anywhere in the package and outside the package, this public means access globaly.
there is no such non-public class in java. so we can consider private, protected, friendly classes as a non-public classes.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the finalize() called?

1124


What is meant by data hiding/encapsulation?

1044


What is the format specifier?

877


Can a class have multiple constructors?

961


What are the changes in java.io in java 8 ?

966


Is c better than java?

906


Can we use this () and super () in a method?

926


Is it possible to specify multiple jndi names when deploying an ejb?

938


Define immutable object?

1006


What does @param args mean in java?

1012


What does a method signature consist of?

924


Implement a stack with push (), pop() and min() in O(1) time.

1033


What is entry in java?

968


What is parsing in grammar?

978


What type of value does sizeof return?

954