1).Is Object class abstract or not?
2).Is main method(public static void main(String args[])low
priority thread or high priority thread?
Answers were Sorted based on User's Feedback
Answer / p.sreekiran
Object is a class not an abstract class
main method is heigh priority thread
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / s.ramesh
1. Object class is not abstract
2. main method (public static void main(String args[])is
Mormal Priority thread until we set priority..
normally it priority value is 5
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / 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 |
How to add and remove nodes in Jtree?
What is jit compiler in java?
Explain inheritance in java?
What is balanced tree in java?
Explain 5 io best practices?
What is the size of int?
How to display names of all components in a Container?
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
What do heavy weight components mean in java programming?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
How would you format a date in java? I.e. In the ddmmyyy format?
Does string isempty check for null?