Multiple choice technology programming languages

Pointers are a mainstay of C programming but faulty pointer arithmetic can often lead to serious bugs. Which of the following C-derived languages has opted to eliminate C-style pointers altogether?

  1. C#

  2. Java

  3. Objective-C

  4. C++

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Java eliminated C-style direct pointer manipulation and pointer arithmetic to improve memory safety and security, relying instead on managed object references and automatic garbage collection.