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 are the advantages of exception handling?
Is java a utf 8 string?
What are access specifiers available in java?
Why is whitespace important?
What is a nested structure?
What are the properties of thread?
What is console based application in java?
List down the methods and interfaces of collection class in java.
What is contractor means and methods?
What is singleton pattern?
How do you detect memory leaks?
What are the 8 data types in java?
Can we return null in java?
What is passing by reference in java?
What are identifiers in java?