ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the purpose of class "Object" which is base class
for all classes?
 Question Submitted By :: Shivakrishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the purpose of class "Object" which is base class for all classes?
Answer
# 1
The Object class sits at the top of the class hierarchy 
tree in the Java development environment. Every class in 
the Java system is a descendent (direct or indirect) of the 
Object class. The Object class defines the basic state and 
behavior that all objects must have, such as the ability to 
compare oneself to another object, to convert to a string, 
to wait on a condition variable, to notify other objects 
that a condition variable has changed, and to return the 
object's class.
 
Is This Answer Correct ?    0 Yes 0 No
Vikki
 
  Re: what is the purpose of class "Object" which is base class for all classes?
Answer
# 2
object class is a base class for all class in java.using 
this class we can call from  super class  methods and 
variables to sub class
 
Is This Answer Correct ?    1 Yes 0 No
Lakshmi
 
 
 
  Re: what is the purpose of class "Object" which is base class for all classes?
Answer
# 3
listen first , when you create object of one class which is not extending any class than , instead of one object , two object will be created and that is nothing but object of Object class and one more thing is no object is created with out it's superclass. So, object of subclass can not be created without it's superclass where Object class comes into picture because by default compiler gives Object class as superclass to all class which is not extending any class at compilation time itself.
 
Is This Answer Correct ?    0 Yes 0 No
Piryabrata Patro
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Explain different ways of passing arguments to sub-routine?  1
what is bytecode? watz the difference between machine code and bytecode? Oracle4
What are uses of Hash Code? Cognizent2
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target  3
Relationship between an event-listener interface and an event-adapter class?  1
What is the use of Getters and Setters method ?  2
explain the life cycle of thread? CTS5
What advantage does an entity bean have over a sessin bean? Adobe3
what is Dictionary? and what purpose it is used for?  2
What is the difference between jsp and servlet? Symphony5
class A{ class B{ } } in which name u save the file,its the program compile? HCL6
How to decrease number of hashings in has  1
What is the GregorianCalendar class? HCL1
how to connect one jsp page to another jsp page???? Symphony4
what is Hashmap & Hashtable wirh example? Saksoft4
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet? Systematix1
explain the clone method and clonable interface  1
What is the Vector class?  3
can any one tell me when do u go for inheritance and polymorphism  1
Howmany classes that package java.applet.* contains? TCS1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com