Java Online Test2 Post author:Harsh Post published:July 2, 2020 Post category:JAVA Post comments:0 Comments Java Online Test2 It is a 2nd java online quiz series and here are 10 questions from 11 to 20. 20 Created on July 02, 2020 By Harsh Java Test2 Hello folk, This is a java test in which there are 10 questions you have to solve only 10 questions. 1 / 10 Question 11. Which of the following option leads to the portability and security of Java? Use of exception handling Bytecode is executed by JVM Dynamic binding between objects The applet makes the Java code secure and portable 2 / 10 Question 12. Which of the following is not a Java features? Dynamic Architecture Neutral Use of pointers Object-oriented 3 / 10 Question 13. _____ is used to find and fix bugs in the Java programs. JVM JRE JDK JDB 4 / 10 question 14. What is the return type of the hashCode() method in the Object class? void Object long int 5 / 10 Question 15. Which of the following is a valid long literal? 0xnf029L 904423 L990023 ABH8097 6 / 10 Question 16.What does the expression float a = 35 / 0 return? 0 Not a Number Infinity Run time exception 7 / 10 Question 17. Which of the following tool is used to generate API documentation in HTML format from doc comments in source code? javah command Javadoc tool javaw command javap tool 8 / 10 Question 18. Which of the following creates a List of 3 visible items and multiple selections abled? new List(false, 3) new List(3, true) new List(true, 3) new List(3, false) 9 / 10 Question 19. Which method of the Class.class is used to determine the name of a class represented by the class object as a String? getName() toString() intern() getClass() 10 / 10 Question 20. In which process, a local variable has the same name as one of the instance variables? Serialization Variable Shadowing Abstraction Multi-threading Your score is The average score is 57% LinkedIn Facebook Twitter 0% Restart quiz Also Read: Java Online Test1 Tags: Java Online Test2 Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Harsh Hey Friends, Welcome to thetechbuddy. This blog is about technical or programming knowledge. You Might Also Like What is this keyword in java? June 19, 2020 Type Casting in Java June 20, 2020 character count in java July 22, 2020 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.