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 |
Describe what happens when an object is created in java ?
what do you mean by java annotations?
how to write a program for chat function using core java
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
What is natural ordering in java?
Does java list allow null?
. Explain Java String Pool.
What is return type in java?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
Which java collection does not allow null?
What is a locale?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.