What is the difference between a public and a non-public
class?
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 |
Post New Answer View All Answers
How many types of assembly languages are there?
Can an unreferenced object be referenced again?
What is string substring?
What is a control variable example?
What are the two ways of implementing multi-threading in java?
Can It is possible to synchronize the constructor of a Java Class?
Explain the public class modifier?
What do you mean by mnemonics?
What is java english?
Explain the reason behind ending a program with a system.exit(0)?
Explain the difference between call by refrence and call by value?
Can we create a constructor in abstract class?
Can an interface be defined inside a class?
Is map ordered in java?
What are 3 data types?