Answer Posted / raju singh
class Car extends Thread
{
@override
public void run()
{
super.start();
System.out.println("This is start in car class");
}
@override
public void run()
{
System.out.println("Car is running");
}
}
class Application
{
public static void main(String []args)
{
Car c=new Car();
c.start();
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain inner classes ?
How do you write a good declaration?
What is difference between wait and notify in java?
What are advantages and disadvantages of OOPs?
Is null a keyword in java?
what is nested class in java?
What is string :: npos?
How do you sort arrays in java?
What is the difference between class forname and new?
Is void a type?
What are the core java topics?
Can you extend main method in java?
Whats the difference between notify() and notifyall()?
Why string is immutable or final in java
What is double parsedouble in java?