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
How do you override a variable in java?
What is abstract class constructor called?
How do you do exponents in java?
What is the difference between method and means?
What are the loops in java?
What does math floor () do?
What is static import?
Why call by value prevents parameter value change?
Is java written in c?
What is final?
Outline the major features of java.
What is purpose of applet programming?
Where is jre installed?
What is the size of arraylist in java?
What does %d do in java?