Why Concept Of Pointer is not there in java

Showing Answers 1 - 3 of 3 Answers

Raghavendra

  • Oct 20th, 2005
 

Pointers are not there mainly to avoid security threats.  As JVM restricts access to the file system, but thru pointers you can access any memory location.  This is the main reason, other is to avoid the complexity.

  Was this answer useful?  Yes

anjani

  • Jan 16th, 2006
 

   even in the 'c' language we dont use the pointers,what is the major difference between them ,insted of them what we use in t he java we have any alternative in this.

  what is the use of pointers what are the demerits of the pointer using

  Was this answer useful?  Yes

Srikanth

  • Jan 18th, 2006
 

pointer are used in c as a new memory is allocate every time a variable are method is created so we use call by refference (&name) and (*name will use the address location), in java memory management is taken care by GC.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions