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
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What are adapter classes?
What is the difference between the direct buffer and non-direct buffer in java?
What is super keyword explain with example?
What is an escape character in java?
What is the difference between actual and formal parameters?
What is difference between Heap and Stack Memory?
What is a locale?
What is the difference between static binding and dynamic binding?
What is an anonymous class in java?
What are the four versions of java?
What is api data?
What is byte value?
Are constructors methods?
Is 0 true or false?