can u override the start() method of Thread class

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


Please Help Members By Posting Answers For Below Questions

What is the null?

533


Explain the difference between treeset and treemap in java?

520


what is meant by Byte code concept in Java?

593


What is the use of protected in java?

528


What do you mean by JVM?

583






What is finally in Java?

572


What exactly is java?

505


Explain about complier design(phases)

620


Is java code slower than native code?

551


List some oops concepts in java?

576


What is sorting in java?

524


When do we use synchronized blocks and advantages of using synchronized blocks?

659


What is google full form?

532


What does isempty () do in java?

593


What are unchecked exceptions in java?

607