+ 16

Why pointers are not used in java ?

31st Mar 2017, 5:23 PM
Nitin Dixit
Nitin Dixit - avatar
5 Respuestas
+ 20
I risk to be hanged by all C, C++ fans here, but for me using pointers direct is a primitive way of handling memory references 😁 so we are better off without them by letting the compilers/ garbage collectors do the job for us...
31st Mar 2017, 7:19 PM
Nikolay Nachev
Nikolay Nachev - avatar
31st Mar 2017, 5:33 PM
Tashi N
Tashi N - avatar
+ 10
@Fethi No... but questions are asked again and again.
31st Mar 2017, 9:52 PM
Tashi N
Tashi N - avatar
+ 2
Java doesn't give the programmer direct access to memory, therefore no pointers no malloc no free no realloc etc. This is done for safety reasons, it protects the programmer from tampering with things (in Java's mind at least) they shouldn't.
28th Apr 2017, 2:52 PM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar
+ 1
@Tashi N you have got good memory.
31st Mar 2017, 9:40 PM
Fethi HADJ ABDELKADER
Fethi HADJ ABDELKADER - avatar