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
How do you add an element to a set in java?
Explain reverse a linked list iterative solution in java?
Can constructor be static or final?
Which are different kinds of source code?
How do you escape a string?
How to compare strings in java?
What are alternatives to java serialization?
Difference between arraylist and vector.
What is java volatile?
How you can force the garbage collection?
What are the parts of a method?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is an empirical question?
What is an immutable class? How to create an immutable class?
In a class implementing an interface, can we change the value of any variable defined in the interface?