What is the difference between a public and a non-public
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|
Why is java so popular?
Is arraylist sorted in java?
What is rule of accessibility in java?
How do you compare two objects?
When should a function throw an exception?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is lossy conversion in java?
What is the default value of an object reference declared as an instance variable?
What is thread pool in java with example?
Is integer passed by reference in java?
Do extraneous variables affect validity?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
Where is const variable stored?
How does compareto work in java?
What is port number in java?