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?
How do you check if a number is a perfect square?
What is the size of boolean variable?
What is the integer of 16?
What is sortedmap interface?
Can one thread block the other thread?
What is a java lambda expression?
What makes a function well defined?
what is the volatile modifier for? : Java thread
What is charat ()?
What is an interface in java? Explain
If we don’t want some of the fields not to serialize how to do that?
explain local datetime api in java8?
What are the 4 types of research methods?
What are the important methods of java exception class?