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
What will be the default values of all the elements of an array defined as an instance variable?
What is charat ()?
What is string builder?
What is the size of boolean variable?
Who is founder of java?
When object is created and destroyed?
What is the purpose of finalization in java programming?
how is final different from finally and finalize in java?
What is anti pattern in programming?
What is use of arraylist in java?
Is zero a natural number?
What are the data types supported by java? What is autoboxing and unboxing?
what is meant wrapper classes?
What is keyword auto for?
What is java ceil?