Java Multiple Choice Questions
Java Multiple Choice Questions 1) Which of the following option leads to the portability and security of Java? Bytecode is executed by JVM The applet makes the Java code secure and portable Use of exception handling Dynamic binding between objects Answer: (a) Bytecode is executed by the JVM. Explanation: The output of the Java compiler is bytecode, which leads to the security and portability of the Java code. It is a highly developed set of instructions that are designed to be executed by the Java runtime system known as Java Virtual Machine (JVM). The Java programs executed by the JVM that makes the code portable and secure. Because JVM prevents the code from generating its side effects. The Java code is portable, as the same byte code can run on any platform. Hence, the correct answer is option (a). 2) Which of the following is not a Java features? Dynamic Architecture Neutral Use of pointers Object-oriented Answer: (c) Use of pointers Explanation: The Java language does n...