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's the base class in java from which all classes are derived?
Explain different ways of creating a thread?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is synchronization and why is it important in java programming?
What do you mean by append?
How can we pass argument to a function by reference instead of pass by value?
What is the difference between form & report?
What is the use of volatile in java?
How does varargs work in java?
Explain the difference between hashmap and hashtable in java?
Does a function need a return?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What are local variables?
What is append in java?
What are the six ways to use this keyword?