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 many decimal places is a double?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is the disadvantage of java?
List primitive java types?
What is an example of a constant variable?
What is a finally block?
Difference between keyword and identifier.
I want to persist data of objects for later use. What’s the best approach to do so?
How strings are created in java?
What’s the difference between applets and standalone program?
What is methodological theory?
Why is stringbuffer thread safe?
Is singleton class immutable?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is the use of default method in interface in java? Explain