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

What is this () in java?

973


What is composition in java?

1216


Why do you canvas?

986


How many types of memory areas are allocated by jvm?

975


Difference between a process and a program?

1057


What is hashing in java?

974


Why should we use singleton pattern instead of static class?

887


What is the static import?

1045


What are the parts of methodology?

932


What are access specifiers available in java?

968


What is the default size of set in java?

903


When do you get classcastexception?

977


What is the difference between the file and randomaccessfile classes?

1029


What is public/private protected in java?

991


Explain spliterator in java8?

1005