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
How to compare two strings in java program?
What are the topics in advance java?
Why is java so important?
Difference between association, composition and aggregation?
Explain different types of wrapper classes in java?
Explain super keyword in java.
Give me example of derived data types.
What are the major drawbacks of external iteration?
What does java edition mean?
Explain about serializable interface in java?
Define immutable object?
Can we have multiple classes in a single file?
What is the function of character?
What is var keyword ?
What is ph and buffers?