Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 change an int to a string?

1060


What is a war file?

1153


What is difference between fail-fast and fail-safe?

1283


Can a private method of a superclass be declared within a subclass?

1101


what is thread in Java ?

1209


what is ststic with example

2118


What are the advantages of user defined functions?

1064


What is the class in java?

1058


When object is created and destroyed?

1145


What is outofmemoryerror in java?

1076


What are functions in java?

1005


Is java pass by value or pass by reference?

1030


What is static block?

1185


What are the major drawbacks of external iteration?

1101


Can a java program have 2 main methods?

1098