Why java does not support pointers?



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

Post New Answer

More Core Java Interview Questions

How do you remove an element from an arraylist in java?

1 Answers  


What is method overloading in JAVA? Why is it not present in C ?

1 Answers   Akamai Technologies,


What is an array in java?

1 Answers  


Linked List reverese program

2 Answers   Bally Technologies,


If an object is garbage collected, can it become reachable again?

1 Answers  


Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


What is a singleton factory?

1 Answers  


Can a constructor call another constructor?

1 Answers  


what is difference between abstract and interface? can i give real time example for the two topics?

7 Answers  


What is the smallest package in Java API?

5 Answers   iGate,


What is double checked locking in singleton?

1 Answers  


What access modifiers can be used for variables?

1 Answers  


Categories