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 do you sort in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Do I need java on my pc?
How to sort array in descending order in java?
What do you mean by multithreaded program?
What do you mean by chromounits in java8?
How to create a custom exception?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
How can u increase the heap size in the memory?
How does callback work in java?
Explain the available thread states in a high-level?
How to compare strings in java?
Can a abstract class be defined without any abstract methods?
Explain the access modifiers for a class, method and variables?
How many functional interfaces does java 8 have?