Test Your Java Knowledge Put your Java skills to test with this quiz containing 11 questions on various aspects of the programming language. remus2009 published on July 16 Stacked 1/11 Which of the following is true about Java? Java is an interpreted language Java is platform-independent Java cannot be used for web development 2/11 What is the main purpose of Java Virtual Machine (JVM)? To provide a virtual environment for C++ programs To compile Java code To execute Java bytecode 3/11 Which keyword is used to define a constant in Java? const final static 4/11 What does OOP stand for in Java? Original Operating Protocol Objective Oriented Programming Object-Oriented Programming 5/11 What is the superclass of all classes in Java? Object Main Class 6/11 Which class is the entry point for all Java applications? Main App public static void main(String[] args) 7/11 What is the output of 2 + 3 * 5 in Java? 15 25 17 8/11 Which package contains the Scanner class in Java? java.util java.io java.lang 9/11 What is the output of 'Hello'.substring(0, 3) in Java? Hell ell Hello 10/11 What does the keyword 'static' mean in Java? To allow a method to be called from another class To indicate that a variable or method belongs to the class, not instance To declare a class as abstract 11/11 Which of the following is not a Java primitive data type? int char string