Answer Posted / veerendra
yes,we can declare if it is inner most class, but outer
class is not allowed because java supports inheritance
concept for reusing the properties from super class to sub
class,at that time the super class is private it wont access
inside,only public features we can reuse it, we can access
and execute through out the world, not private with in the
class onle we can access it.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can you declare the main method as final?
What is a list in java?
How can we achieve thread safety in java?
What is the basic of java?
What are the advantages of encapsulation in java?
What is null mean in java?
What is %d in printf?
Which is faster string or stringbuilder?
What does opcode mean?
What are the advantages of user defined functions?
What are parsing rules?
How do you remove an object from an arraylist in java?
Can variables be used in java without initialization?
What are different types of references?
What is the difference between JDK and JVM?