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 happens to the Exception object after handling an exception?

2373


Why string objects are immutable in java?

1049


Can we override final method?

1013


Write a program to show whether a graph is a tree or not using adjacency matrix.

1098


What is executor memory?

952


What are the two types of java programming?

1066


Is java call by reference?

982


Can we change the value of static variable?

961


What is the difference between heap memory and stack memory?

1075


Can you access the private method from outside the class?

974


Can we declare a class as abstract without having any abstract method?

1002


What is the size of int?

1085


What are the restrictions imposed by a Security Manager on Applets?.

2614


What is the purpose of skeleton and stub?

1248


How do you take thread dump in java?

1018