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
How do I start learning java?
State some advantages of java?
How can we find the sum of two linked lists using stack in java?
What state is a thread in when it is executing?
How to find the given number is a prime number or not by getting input from the user
What is object data type?
Where will it be used?
What are the supported platforms by java programming language?
What is null object in java?
What is the use of singleton?
How is Object Oriented Programming different from Procedure Oriented Programming?
what do you understand by the term string with respect to java?
How is string stored in java?
Is class forname reflection?
Does java support multiple inheritance or not?