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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 an object class?Explain  its methods?
 Question Submitted By :: Nesanurisundar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is an object class?Explain its methods?
Answer
# 1
Object class:-
Class Object is the root of the class hierarchy. Every class
has Object as a super class. All objects, including arrays,
implement the methods of this class. 

1)protected  Object 	clone()
          Creates and returns a copy of this object.
2) boolean equals(Object obj)
          Indicates whether some other object is "equal to"
this one.
3)protected  void finalize()
          Called by the garbage collector on an object when
garbage collection determines that there are no more
references to the object.
4)Class<? extends Object> getClass()
          Returns the runtime class of an object.
5) int 	hashCode()
          Returns a hash code value for the object.
6)void 	notify()
          Wakes up a single thread that is waiting on this
object's monitor.
7) void notifyAll()
          Wakes up all threads that are waiting on this
object's monitor.
8) String toString()
          Returns a string representation of the object.
9)void wait()
          Causes current thread to wait until another thread
invokes the notify() method or the notifyAll() method for
this object.
10)void wait(long timeout)
          Causes current thread to wait until either another
thread invokes the notify() method or the notifyAll() method
for this object, or a specified amount of time has elapsed.
11) void wait(long timeout, int nanos)
          Causes current thread to wait until another thread
invokes the notify() method or the notifyAll() method for
this object, or some other thread interrupts the current
thread, or a certain amount of real time has elapsed.
 
Is This Answer Correct ?    1 Yes 0 No
Srinu
 
  Re: what is an object class?Explain its methods?
Answer
# 2
In Java,Object Class is a superclass for every class.the 
above listed methods r there in object class.
 
Is This Answer Correct ?    1 Yes 0 No
Anitha
 
 
 
  Re: what is an object class?Explain its methods?
Answer
# 3
Object class is the super most class inside the hierarchy of
classes.

1).wait()
2).notify()
3).notifyAll()
4).instanceOf()
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is Applet Flickering ? Persistent1
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.  2
What is update method and when it is called?  1
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?  1
What are null interfaces in JAVA ? and give me some examples?  3
which class to use when concatenating strings in a loop. IBM2
What is the ResourceBundle? Elementus-Technologies2
How Applets & Servlets will communicate with each other?  2
what is Portal(web based online portal)? AIG1
Difference between String & StringBuffer Wipro6
What is the Vector class?  3
why is multiple inheritance not allowed in java? Elementus-Technologies5
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
Explain about global variables in Java?  2
explain the classification of exception and hoew to handle the exceptions  2
What is the use of anonymous inner classes ? HCL8
transaction attributes ?  2
what is use of session tracking ?with example? Photon1
when,where and how to use abstract class and interface  2
what is main purpose of abstract class?  2
 
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