Multiple choice

Which of the following features of C++ is/are supported by Java?

  1. Operator overloading

  2. Template classes

  3. Pointers

  4. Destructor function

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

Java has replaced the destructor function with a finalize() function.