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


Please Help Members By Posting Answers For Below Questions

Which collection is ordered in java?

755


I want to persist data of objects for later use. What’s the best approach to do so?

716


How many bytes is a url?

773


Can a abstract class be declared final?

798


Why string is immutable with example?

736


What are the difference between composition and inheritance in java?

756


When should you use arraylist and when should you use linkedlist?

716


How do you start a thread?

782


How do I run java on windows?

791


What happens if constructor is private?

806


How do we access static members in java?

856


What is OOP Language?

852


What initialize variables?

721


Can we extend singleton class in java?

761


Can you achieve runtime polymorphism by data members?

878