21. Which of the following is NOT a component of JDK (Java Development Kit)?

  • Java Compiler
  • Java Virtual Machine (JVM)
  • Java Runtime Environment (JRE)
  • Java Class Libraries

22. What is the purpose of the "class" keyword in Java?

  • To define a class.
  • To define a method.
  • To declare a package.
  • To create an object.

23. Which of the following is an application of Common Language Runtime (CLR) and Framework Class Library (FCL) in C#?

  • Database connectivity
  • User interface design
  • File handling
  • Networking

24. Which of the following is NOT a feature of Java programming language?

  • Platform independence
  • Object-oriented programming (OOP)
  • Garbage collection
  • Pointers

25. Which of the following is a difference between C++ and Java?

  • C++ supports multiple inheritance, while Java does not.
  • Java supports operator overloading, while C++ does not.
  • C++ does not have a garbage collector, while Java does.
  • Java allows for direct memory manipulation, while C++ does not.

Leave a Reply