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 is this () in java?
What is composition in java?
Why do you canvas?
How many types of memory areas are allocated by jvm?
Difference between a process and a program?
What is hashing in java?
Why should we use singleton pattern instead of static class?
What is the static import?
What are the parts of methodology?
What are access specifiers available in java?
What is the default size of set in java?
When do you get classcastexception?
What is the difference between the file and randomaccessfile classes?
What is public/private protected in java?
Explain spliterator in java8?