can we declare private class in java file?

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


Please Help Members By Posting Answers For Below Questions

What is thread start?

739


What is the use of toarray () in java?

807


What is bool mean?

766


What is a map? What are the implementations of map?

837


enlist some features of jdk.

761


What are JVM.JRE, J2EE, JNI?

903


Can we use both this () and super () in a constructor?

798


Whats the difference between notify() and notifyall()?

811


Explain the importance of thread scheduler in java?

805


How do you sort a set in java?

733


What is the program development process?

760


Is java a super set of javascript?

857


What is anagram number?

666


How do you escape in java?

824


What is the difference between jdk, jre, and jvm?

819