Start learning →

Why does Java disallow C/C++ style pointer arithmetic?

ATo parse syntax faster
BTo limit heap memory
CTo ensure type safety
DTo avoid dynamic binds
Answer & Solution
Correct answer: C. To ensure type safety
Omitting pointer arithmetic enables object relocation and guarantees type safety.
Practise this question with Quill — ICSE Class 8 →

Keep practising Introduction to Java and BlueJ

Browse all Introduction to Java and BlueJ questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Introduction to Java and BlueJ lesson →