GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 757 of 928    Print  
Does Java has pointer?

  
Total Answers and Comments: 12 Last Update: October 21, 2008     Asked by: geek_zubi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
February 25, 2006 21:15:37   #1  
radhi_04 Member Since: January 2006   Contribution: 2    

RE: Does Java has pointer?

no java does not have a pointer but we can use the new operator

for ex:

the name of the method is firstname

we can create a objectas

firstname f new firstname

this allocates the memory according to the size of the method firstname


 
Is this answer useful? Yes | No
February 26, 2006 02:45:31   #2  
mca_udit Member Since: February 2006   Contribution: 6    

RE: Does Java has pointer?
hey java provides no facility to use pointers to the programmers.....but i think that in JVM pointers r commonly used..bec it provide the garbage collecter...but all the work on the pointers done internally.......no information to the programmer
 
Is this answer useful? Yes | No
February 27, 2006 04:26:24   #3  
Java_Guy        

RE: Does Java has pointer?
No Java doesn't have the concept of pointers
 
Is this answer useful? Yes | No
February 27, 2006 06:41:13   #4  
geek_zubi Member Since: February 2006   Contribution: 6    

RE: Does Java has pointer?
Thanks everybody for a prompt reply
 
Is this answer useful? Yes | No
March 11, 2006 03:44:20   #5  
suresh.bandlamudi Member Since: March 2006   Contribution: 18    

RE: Does Java has pointer?

no java does not have pointers

we can use new pointer to refer an object variable


 
Is this answer useful? Yes | No
March 27, 2006 04:04:32   #6  
bhuvanathiyagarajan        

RE: Does Java has pointer?
no java does not have pointer concept
 
Is this answer useful? Yes | No
March 31, 2006 08:27:30   #7  
anil KALERU        

RE: Does Java has pointer?

NO java doesn't support pointer concept

Let give me Why doesn't java


 
Is this answer useful? Yes | No
April 03, 2006 01:34:14   #8  
Rajasekar        

RE: Does Java has pointer?
No. java does not have pointers.. thats why java is more secured then other language
 
Is this answer useful? Yes | No
April 03, 2006 06:45:55   #9  
geek_zubi Member Since: February 2006   Contribution: 6    

RE: Does Java has pointer?

Java do have pointers; but not similar to the one that C has. In Java Pointers are in the form of Objects/references. Also the pointers in Java are not explicit like C. probably JVM internally uses pointers. Every object is a reference to a location making it a pointer...these pointers cannot be directly manipulated.

Differences between the C & Java pointers:

1) A pointer is a variable that holds the memory address of data. In Java
there are only references which do not hold any memory address but
which are indices in a table and this table has then the real pointer to
the data.

2) Pointer Arithmetic is not possible with Java pointers.

These are my conclusions ...... What u all people think about this?


 
Is this answer useful? Yes | No
April 03, 2006 13:09:45   #10  
Radhika        

RE: Does Java has pointer?

Sharukh

Your explanation is very clear of all.

Thanks

Radhika.


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape