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
Is linkedlist thread safe in java?
What is difference between word and integer?
What is nested class?
What is the difference between member variables initialization and assignment in a constructor?
What is nextint java?
How do I get a substring?
Difference between error and exception
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Where are register variables stored?
How do you remove duplicates from an array in java?
What is arguments in java?
Explain about data types?
When is finally block not called?
What is the difference between method overriding and overloading?
Differentiate between nested and inner class in java.