Answer Posted / prashant khot
class A
{
}
class B extends A
{
public static void main(String args[])
{
B b = new B();
}
}
In the above example, B is the class extending the A class.
Means that B is inherited from A.
Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
How to overcome the exception object reference not set to an instance of object?
What is difference between == equals () and compareto () method?
How do you write a good declaration?
How does varargs work in java?
What is the maximum size of arraylist in java?
What happens if we override private method?
What is replacefirst in java?
How does regex work?
Explain tree set and its features?
How is tree Mirroring implemented?
Is a boolean 1 bit?
What is Major and importance difference between for and foreach loop ?
How many characters is 2 bytes?
Can we override private constructor in java?
What is string pool?