An inner class can actually be a subclass of the outer class?
a. true
b. false
Answers were Sorted based on User's Feedback
Answer / mool shankar shukla
inner class is a class within class. and sub class is a class which inherits method or methods from super class.
example of sub class...........
class a
{}
class b extends a
{}
here b is sub class of a.
Is This Answer Correct ? | 3 Yes | 1 No |
WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?
What is the purpose of the system class in java programming?
Which methods cannot be overridden in java?
Do you know how to reverse string in java?
Similarity and difference between static block and static method ?
what is inner class in java?
what do you mean by java annotations?
Implement a stack with push (), pop() and min() in O(1) time.
Which is the best way of exception handling?
What are the differences between c++ and java?
Difference between this(), super()?
12 Answers College School Exams Tests, Oracle,
Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?