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 |
Why charat is used in java?
Is null a value?
Can a function return a function?
Why hashcode is used in java?
What is a method header?
What is connection class in java?
Name few "optional" classes introduced with java 8 ?
Explain importance of finally block in java?
What is JVM and is it platform independent?
what is meant by Byte code concept in Java?
What is generic class?
How many bytes is string in java?