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

What are the advantages of exception handling?

793


Is java a utf 8 string?

746


What are access specifiers available in java?

798


Why is whitespace important?

776


What is a nested structure?

730


What are the properties of thread?

687


What is console based application in java?

787


List down the methods and interfaces of collection class in java.

755


What is contractor means and methods?

769


What is singleton pattern?

780


How do you detect memory leaks?

778


What are the 8 data types in java?

741


Can we return null in java?

834


What is passing by reference in java?

763


What are identifiers in java?

784