Java Test

Exam Type: Java MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 32
Time Limit: 30 Minutes
Last Update June, 2025

Pass Java Exam

75%
Total time

1 minute 2 seconds

Total time

1 correct answers

Total time

6 incorrect answers

Total time

6 not attempted

Start

Java Quiz

Question 1 of 32
30:00

Which of the following statements are true about local inner class within a method?

What is the output of the given program? public class Test96 { public static void main(String[] args) { int[] a = new int[2]; System.out.println(a.length); } }

Which of the following statements about threading is incorrect?

What will the length() method in the File class return?

Choose the correct statement:

What is the superclass of java.net.DatagramSocket?

Which of the following statements is true of the HashMap class?

Which of the following statements are correct with regard to Polymorphism?

Note: Select more than 1 option as correct answer

What is true regarding the User Datagram Protocol (UDP)?

Note: Select more than 1 option as correct answer

What is the return type of the method ceil(double) from the Math class?

Which of the following is the correct syntax for suggesting that the JVM perform garbage collection?

You want to loop through an array and stop when you come to the last element. Which of the following give information about the size of array, if its name is arMark?

A method can be defined as native to:

Note: Select more than 1 option as correct answer

Which of the following are not Java keyword?

Which of the following are wrapper classes?

Note: Select more than 1 option as correct answer

Which of the following methods is used to get the parameters of an applet?

Which of the following is a benefit derived from using OOPS?

Which of the following cannot apply to constructors?

What protocol is used by the DatagramSocket class?

Which class contains a method to create a directory?

Which of the following methods are members of the Vector class and allow you to input a new element?

One method in your application needs to be synchronized. Which of the following options are correct for synchronization?

Note: Select more than 1 option as correct answer

Which of the following help increase the code clarity?

Note: Select more than 1 option as correct answer

What is Encapsulation?

Which of the following statements is not correct with regard to threads in Java?

Which of the following require explicit try/catch exception handling by the programmer?

Note: Select more than 1 option as correct answer

In which class is the notify method defined?

Which of the following are the methods of the Thread class?

Note: Select more than 1 option as correct answer

What will be the output of the following line? System.out.println(Math.floor(-2.1));

Which of the following methods will cause a thread to stop?

Which of these interfaces are used by implementations of models for JTable?

Note: Select more than 1 option as correct answer

What is the method by which two or more applets can communicate with each other within one HTML page?

Java Test Explained

© 2025 Skill Test Answer. All Rights Reserved