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

why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

548


Can java hashmap have duplicate keys?

509


How many ways can an argument be passed to a subroutine and explain them?

570


what is meant by Byte code concept in Java?

600


Is ++ operator thread-safe in java?

630






Define how can we find the actual size of an object on the heap?

652


What is Recursion Function?

639


Why can't we make a class private in java?

536


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

560


How can an object be unreferenced?

538


Give the difference between the println method and sqrt method?

623


What are exception handling keywords in java?

603


What is data member in java?

499


Can private members of a base class are inheritable justify?

484


Is empty list java?

520