Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What do you mean by composition in java?

0 Answers  


what is meant by Byte code concept in Java?

0 Answers   Aspire,


Can an interface extend another interface?

0 Answers  


Can we extend singleton class in java?

0 Answers  


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

0 Answers   Amazon,






What is basic concept of static in java ?

1 Answers   iGate,


What is the purpose of file class?

0 Answers  


Explain abstract class in java?

0 Answers  


Can we have static methods in an interface?

0 Answers  


Are the equals() and hashCode() protected methods of object class?

1 Answers   Avaya,


Can singleton class be cloned?

0 Answers  


how to make the double-tone class ? as we have singletone class..?

1 Answers   IBM, Microsoft,






Categories