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 |
can we declare private class in java file?
What is the need to implement Serializable interface (with no methods) for objects which are to be serialized ? We can write our own functionality which writes objects to streams then why we need to implement and tell JVM that which objects can be serialized.
Why does java doesnot support multiple inheritance?
How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...?
How do you define a parameter?
what are the major differences between jdk1.4 and jdk1.5?
2 Answers Cap Gemini, Crimson Logic, Infosys, TCS, Tenth Planet,
When is the finalize() called? What is the purpose of finalization?
Which all r Final classes in java except string?
y cant i declare method like public final static show()
How is a structure different from array ?
What do you mean by checked exceptions?
What are virtual functions?