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 |
what is servlet filter?
how to handle http request in struts
Explain when we should make an instance variable private.
How does system arraycopy work in java?
When try and catch block is used ?
What do you mean by Function Overloading in java?
What is passing value java?
Enlist few advantages of inheritance?
What is a module function?
What are variable names?
what is a static block?
What is meant by class loader and how many types are there?