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?

Answers were Sorted based on User's Feedback



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

Answer / ravikiran(aptech mumbai)

public class is the one whose memebers can get an access to
all the classes in the same package and out of the package

Is This Answer Correct ?    14 Yes 0 No

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

Answer / 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

More Core Java Interview Questions

Mention a package that is used for linked list class in java.

0 Answers  


What is nested top-level class?

0 Answers  


What is the preferred size of a component?

3 Answers   ITSA,


What are keywords in java?

0 Answers  


define System.out.println(); what is the meaning!

19 Answers   Accenture,


diff. b/w JAVA and javascript...

3 Answers   NIIT,


System.out & System.in are final static data member of System class but we can change there reference through setOut() & setIn() method how...

2 Answers   FCS, TCS,


what is the difference between the methods sleep() and wait()? : Java thread

0 Answers  


What is a serializable interface?

4 Answers  


You're given a Boolean 2D matrix, can you find the number of islands?

0 Answers   Amazon,


Which containers may have a MenuBar?

1 Answers  


How do you identify independent and dependent variables?

0 Answers  


Categories