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

How do you get length in java?

563


How do you replace all in word?

533


What is return code?

562


Can a static class implement an interface?

562


How the metacharacters are different from the ordinary characters?

571






What is the full form of jpeg?

525


Why convert an applet to an application?

620


What are the differences between path and classpath variables?

501


Explain 5 io best practices?

599


What is the string function?

559


Is vector ordered in java?

540


What is break and continue statement?

618


What is a default method?

525


What is the difference between actual and formal parameters?

520


Explain about object oriented programming and its features?

599