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 |
Explain the difference between treeset and treemap in java?
Can a class have multiple constructors?
Is it possible to create object with out its default constructor? if possible how? else not possible? justify
What is the maximum size of a string in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is java literals?
What do heavy weight components mean in java programming?
Is there is any difference between a scrollbar and a scrollpane?
How are variables stored?
What is private protected in java?
What is arraylist class in java?
What is the minimum and maximum length of an identifier?