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
what invokes a threads run() method? : Java thread
What is skeleton and stub? What is the purpose of those?
What is meant by class loader? How many types are there? When will we use them?
What is method overloading in JAVA? Why is it not present in C ?
Is there a jre for java 11?
What is a flag and how does it work?
What is a values collection view ?
Why is multiple inheritance not supported in java?
List types of storage classes in java?
Why java uses the concept of the string literal?
How do you break a loop?
Explain constructors and types of constructors in java.
What is serialversionuid?
Can we sort array in java?
What's the default access specifier for variables and methods of a class?