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.
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.
Related questions
Match each Java language feature with its benefit:Match each object-oriented programming concept with its definition:Match each BlueJ IDE interface element with its purpose:Match each core Java platform component with its role:Which framework lets Java interact with native C/C++ libraries?When does the JVM bytecode verifier check bytecode?Which class loader in every JVM must load trusted classes?Which activity strictly follows loading in a JVM class loader?