How can a class be accessed, If no access modifiers are
declared?
Answer Posted / ranganathkini
If a class is marked with no access modifiers then it is
given "package" access by default which means it can be
instantiated or subclasses by other classes in the same
package but it is inaccessible to classes outside the same
package.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by the value of a variable?
Can we instantiate interface in java?
Can we clone singleton class in java?
What is an empty string in css?
What is the maximum size of arraylist in java?
Is a class an object?
What are the main differences between the java platform and other platforms?
What is the concatenation operator in java?
What do u mean by variable?
Explain different types of wrapper classes in java?
What is the technique adopted to create an immutable class?
What type of variable is gender?
What happens when I use / and % with a negative numerator?
What is bytecode verifier?
What do you mean by mnemonics?