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


Please Help Members By Posting Answers For Below Questions

How to compare two strings in java program?

675


What are the topics in advance java?

523


Why is java so important?

652


Difference between association, composition and aggregation?

563


Explain different types of wrapper classes in java?

603






Explain super keyword in java.

584


Give me example of derived data types.

594


What are the major drawbacks of external iteration?

575


What does java edition mean?

539


Explain about serializable interface in java?

586


Define immutable object?

583


Can we have multiple classes in a single file?

514


What is the function of character?

526


What is var keyword ?

742


What is ph and buffers?

522