Single Choice Easy

QWhat features are present in C++ that are not present in Java?

ID: #10348 Abstract class and method 164 views
Question Info
#10348Q ID
EasyDifficulty
Abstract class and methodTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Multiple inheritance and operator overloading
  • B Garbage collection and exception handling
  • C Polymorphism and encapsulation
  • D Dynamic memory allocation and function templates
Correct Answer

Explanation

C++ is a powerful, general-purpose programming language that supports multiple inheritance and operator overloading, features that are not present in Java. Multiple inheritance allows a class to inherit from multiple parent classes, while operator overloading allows the same operator to be used with different types of data. These features are not present in Java, which only allows single inheritance and does not support operator overloading.

Share This Question

Challenge a friend or share with your study group.