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 the difference between a java object reference and
c++ pointer?
 Question Submitted By :: Shivakrishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between a java object reference and c++ pointer?
Answer
# 1
both are the same concept the java object reference and c++ 
pointer.the object reference stored in the memory heap and 
object are stored in stack.
Pointer are locate the address of the variables and object 
reference locate the value of the variables.
 
Is This Answer Correct ?    8 Yes 4 No
Ranabir Chakraborty
 
  Re: what is the difference between a java object reference and c++ pointer?
Answer
# 2
The above answer is wrong; Objects are stored on heap; 
Refrence contains the way to reach out to the object.
pointers point to the location where a primitive type is 
stored.
 
Is This Answer Correct ?    2 Yes 0 No
Puneet
 
 
 
  Re: what is the difference between a java object reference and c++ pointer?
Answer
# 3
Both have same purpose,becoz both point some memory location
,they hold the address of that location.Java  reference
variable point the memory location of an object whereas C++
ponter point the memory location of any primitive type of
data type.
 
Is This Answer Correct ?    0 Yes 1 No
Chandra Prakash Sahu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
If your team member writes code with lots of static variables and static methods, will it cause any side effects? KPIT1
can any one tell me when do u go for inheritance and polymorphism  1
What is update method and when it is called?  1
What is inheritance?  4
How Array List can be Serialized. Polaris5
what is business objects?  1
Need 2+ yrs experienced java techinical question papaer for company Iflex  1
What is Collection interface? Zensar1
What is the USE of Null interfaces ??...if thers nothing inside these interfaces how are they used and WHy are they used ???? No 1 has given a proper description yet  1
Can applet in different page/s communicate with each other?  1
What is 3-tier model? Wipro3
Why java Don't Support Multiple interitence ABC7
What are E and PI?  1
can we add two numbers without using arthematic operators? if possible how?  2
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet  3
How u dubugg ur project? iFlex1
what is difference Between Core Java and advance java HCL19
what is difference between method overloading & method overridding with example? IBM2
What is hard code & soft code? Wipro4
C and C++ has constructors and distructors, why does Java does not have distructors? T3-Softwares1
 
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