Home > Java Programming > Quizzes > Java Programming Practice Test
Java Programming Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 25% Most missed: “A message string is returned by which method of an Exception object?”
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Java vs Python: Java and Python are two of the most popular programming languages. Of the two, Java is the faster language, but Python is simpler and easier to learn. Java vs C++: C++ is used more in large-scale development, like for banks or governments, whereas Java creates more consumer products like apps, software, and video games. Java is ideal for creating simple mobile applications, so if your ideal job is to become a freelance app creator,... Show more
Java Programming Practice Test
Time left 00:00
25 Questions

1. Which of the following is a valid declaration of an object of class Box?
2. If a thread is to be declared as a daemon thread, it must be declared before
3. JAR stands for?
4. Which of these class is used to create an object whose character sequence is mutable?
5. What is a listener in context to event handling?
6. The method in Graphics class to draw a circle/oval with specified width and height.
7. The class used to encapsulate fonts is
8. The method to set the text of Textfield.
9. Which command disassembles a class file
10. The layout manager that lays out a container's components in a rectangular grid.
11. Which of these is the method which is executed first before execution of any other thing takes place in a program?
12. Which of these methods can be used to output a string in an applet?
13. Which of these methods in KeyEvent class can be used to know which key is pressed?
14. The layout manager that lets you align components at north, south, east, west directions is
15. Which of these methods can be used to obtain the command name for ActionEvent object?
16. Which of these methods can be used to output a string in an applet?
17. Which is true about an anonymous inner class?
18. Java Stream classes can be categorized into two groups:
19. Interfaces helps in which type of inheritance
20. What is the process of defining a method in terms of itself that is a method that calls itself?
21. Which of these is correct about passing an argument by call-by-value process?
22. DataInputStream class contains methods to read________
23. Which of the following statements is true?
24. Which of these selection statements test only for equality?
25. The method to get the text of a Label