What is the difference between a public and a non-public
class?
Answers were Sorted based on User's Feedback
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 |
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 |
How Marker Interfaces are instruct to complete the desired need ?
What is independent and dependent variables in research?
How many arguments can be passed to main ()?
What is http client in java?
What if I write static public void instead of public static void in java?
What is the scope or life time of instance variables?
Where can I find data structures question and answers with comprehensive working code written in Java
What ide should I use for java?
List some features of the abstract class.
What is the protocol is used in type4 driver?
What is java english?
What is empty string literal in java?