Why java does not support pointers?
Answer / Pankaj Chitransh
Java was designed with the goal of providing a high-level, memory-safe language. To achieve this goal, it does not support pointers as they can lead to issues like dangling references and buffer overflows if not used correctly. Instead, Java uses garbage collection and automatic memory management to manage memory resources efficiently.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you remove an element from an arraylist in java?
What is method overloading in JAVA? Why is it not present in C ?
1 Answers Akamai Technologies,
What is an array in java?
Linked List reverese program
If an object is garbage collected, can it become reachable again?
Write a program to find the whether a number is an Armstrong number or not?
What is a singleton factory?
Can a constructor call another constructor?
what is difference between abstract and interface? can i give real time example for the two topics?
What is the smallest package in Java API?
What is double checked locking in singleton?
What access modifiers can be used for variables?