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 |
Mention a package that is used for linked list class in java.
What is nested top-level class?
What is the preferred size of a component?
What are keywords in java?
define System.out.println(); what is the meaning!
diff. b/w JAVA and javascript...
System.out & System.in are final static data member of System class but we can change there reference through setOut() & setIn() method how...
what is the difference between the methods sleep() and wait()? : Java thread
What is a serializable interface?
You're given a Boolean 2D matrix, can you find the number of islands?
Which containers may have a MenuBar?
How do you identify independent and dependent variables?