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...

1).Is Object class abstract or not?
2).Is main method(public static void main(String args[])low
priority thread or high priority thread?

Answer Posted / harinath.b (sai sudhir p.g co

1) Object class is not an abstract class.The default
implementation is provided by javasoft.If we want we can
override the methods of Object class.
Ex class Top extends Object{
public String toString()
{
return "Java is ruling the WEB";
}
}

2)main() method is having the normal priority.To see how
it is :

class MainPriority{
public static void main(String main[]){
System.out.println("Main priority is
:"+Thread.currentThread().getPriority());
}
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what invokes a threads run() method? : Java thread

1018


What is skeleton and stub? What is the purpose of those?

1132


What is meant by class loader? How many types are there? When will we use them?

973


What is method overloading in JAVA? Why is it not present in C ?

1104


Is there a jre for java 11?

1095


What is a flag and how does it work?

1010


What is a values collection view ?

1093


Why is multiple inheritance not supported in java?

1037


List types of storage classes in java?

1155


Why java uses the concept of the string literal?

1064


How do you break a loop?

986


Explain constructors and types of constructors in java.

1115


What is serialversionuid?

1092


Can we sort array in java?

956


What's the default access specifier for variables and methods of a class?

1120