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
What happens to the Exception object after handling an exception?
Why string objects are immutable in java?
Can we override final method?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is executor memory?
What are the two types of java programming?
Is java call by reference?
Can we change the value of static variable?
What is the difference between heap memory and stack memory?
Can you access the private method from outside the class?
Can we declare a class as abstract without having any abstract method?
What is the size of int?
What are the restrictions imposed by a Security Manager on Applets?.
What is the purpose of skeleton and stub?
How do you take thread dump in java?