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
What is use of super keyword in java?
Describe what happens when an object is created in java ?
Explain the difference between an object-oriented programming language and object-based programming language?
How do you reverse a list?
What are different types of states exist for a thread?
How do you reverse a string in java?
What is empty list in java?
Tell us something about set interface.
What language is java written?
What is compiler and what its output.
How we can declare a static variable?
What are thread groups?
Is a char always 1 byte?
What is the purpose of object oriented programming?
Can we declare the static variables and methods in an abstract class?