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
Which collection is ordered in java?
I want to persist data of objects for later use. What’s the best approach to do so?
How many bytes is a url?
Can a abstract class be declared final?
Why string is immutable with example?
What are the difference between composition and inheritance in java?
When should you use arraylist and when should you use linkedlist?
How do you start a thread?
How do I run java on windows?
What happens if constructor is private?
How do we access static members in java?
What is OOP Language?
What initialize variables?
Can we extend singleton class in java?
Can you achieve runtime polymorphism by data members?