Why java not accept pointer ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why java not accept pointer ??

29th Aug 2017, 6:41 PM
Hariom Sharma
Hariom Sharma - avatar
2 Answers
+ 11
java does't support pointers because usage of pointer leads illegal access of data i.e pointers show the exact address of the data and using this address any modifications can be made to info stored leading to lack of security, but java is a secured language and prides itself of being robust thats the reason pointers concept was removed from java.
29th Aug 2017, 7:13 PM
P R
P R - avatar
0
ty for answering
10th Oct 2017, 10:39 AM
Hariom Sharma
Hariom Sharma - avatar