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
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Can java hashmap have duplicate keys?
How many ways can an argument be passed to a subroutine and explain them?
what is meant by Byte code concept in Java?
Is ++ operator thread-safe in java?
Define how can we find the actual size of an object on the heap?
What is Recursion Function?
Why can't we make a class private in java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
How can an object be unreferenced?
Give the difference between the println method and sqrt method?
What are exception handling keywords in java?
What is data member in java?
Can private members of a base class are inheritable justify?
Is empty list java?