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



1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low p..

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

1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low p..

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

1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low p..

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

Post New Answer

More Core Java Interview Questions

Difference between Reader/Writer and InputStream/Output Stream?

9 Answers   Adobe, Kirusa, Verizon,


How can constructor chaining be done using this keyword?

2 Answers  


What is the basic functionality of DataOutput interface in java?

2 Answers   TCS,


If we don’t want some of the fields not to serialize how to do that?

1 Answers  


how can we import the user defined package without classpath?

1 Answers   CSC, Infosys,


Can final class have constructor?

1 Answers  


What type of variable is error flag?

1 Answers  


Why hashmap is used in java?

1 Answers  


How do you use final keywords and final variables in Java?

2 Answers  


Do loops java?

1 Answers  


How to Create A Wapper Class in core Java and Why are Use in java?

2 Answers   Amdocs,


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


Categories