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 reverse a string in java without using string buffer?
What is the transient keyword?
Explain about field hiding in java?
What is array list in java?
What are the differences between heap and stack memory?
how would you implement a thread pool? : Java thread
What is the major drawback of internal iteration over external iteration?
What is an example of character?
What is json parser in java?
What is jrmp?
Explain about serializable interface in java?
What does || || mean in math?
what are the high-level thread states? : Java thread
What state is a thread in when it is executing?
How do you delete a list in java?