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 inherit a constructor java?
What are the difference between composition and inheritance in java?
What is a finally block?
What is final, finally, finalize?
What is the main method java?
How is string immutable in java?
What is a variable simple definition?
Can we synchronize static methods in java?
Is null false in java?
Is java 9 released?
how we can create packages in java?
Can we use catch statement for checked exceptions?
Can we use a default constructor of a class even if an explicit constructor is defined?
What are void methods?
What are the two parts of a conditional statement?