17 Questions
Which programming language is considered a pure object-oriented language?
Java
Which of the following is a feature of C++ but not Java?
Supports default arguments in method parameters
In which language can you explicitly manipulate pointers?
C++
Which language does NOT support operator overloading?
Java
Which language does NOT have a 'main' method that can return a value?
C++
Which language supports multiple inheritance?
C++
Which of the following is a key difference between Java and C++?
Java does not support typedef, while C++ does.
What is a feature present in Java but not in C++?
Java can use instanceof operator, which C++ does not have.
Why can't Java use #define and #include like C++?
Java does not have a preprocessor, unlike C++.
What is a significant distinction between Java and C++ regarding comments?
Java supports documentation comments along with C/C++ style comments.
Which language provides support for structures and unions: Java or C++?
C++ supports structures and unions, while Java does not.
What feature in Java acts as an intermediary between the virtual machine and the real machine?
Java interpreter
What feature of Java eliminates the ability for programs to gain unauthorized access to memory locations?
Absence of pointers
Which feature of Java allows multiple programmers at different remote locations to collaborate on a single project?
Distributed design
One key difference between Java and C++ is that Java does not use which of the following?
Pointer
What is a notable feature of Java that makes it more secure when programming on the internet?
Absence of pointers
Which feature allows Java programs to handle multiple tasks simultaneously?
Multithreading support
Test your knowledge on reducing memory utilization through sharing data in shared archives among JVM processes, as well as creating distributed Java applications. Explore topics like accessing files from any machine on the Internet using Java and enhanced features in J2SE 5.0 for desktop clients.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free