Home > Web Development > Quizzes > Web Development using Java Practice Test Questions
Web Development using Java Practice Test Questions
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 40% Most missed: “Which of the following statement is not correct?”
Web Development using Java Practice Test Questions
Time left 00:00
25 Questions

1. Which of the following statement declares a constant field in Java?
2. Which of the following class defines print() and println() method?
3. _______ is at the top of the exception class hierarchy.
4. Which of the following modifier is used to prevent a property from being serialized?
5. Which class provide implementation for service() method?
6. _______ must be the first statement executed inside a subclass Constructor.
7. Wrapper class is a wrapper around a _______ data type.
8. In Java, by default every thread is given a _________ .
9. Object is an _________ of a class
10. What is the range of the char type?
11. ________ is a special member function.
12. A package is a collection of ______.
13. What will be the output of following code? Integer iob =100
System.out.println(iob++)
14. When using HTML forms which of the following is true for POST method? Select the one correct answer.
15. Variable declared as ________ do not occupy memory on a per instance basis.
16. What is the prototype of the default constructor for given class? public class Test { }
17. Which of the following is not a valid declaration of a Top level class?
18. What will be the Output of the given program? import java.io.*
class Super { void show() { System.out.println(parent")
} } public class Sub extends Super { void show() throws IOException { System.out.println("child")
} public static void main( String[] args ) { Super s = new Sub()
s.show()
} }"
19. _______ statement in java is multiway branch statement.
20. Which of the given statement is not true about a Java Package?
21. What will happen on running the following code? try { int arr[]={1,2}
arr[2]=3/0
System.out.println(a[0])
} catch(Exception e) { System.out.println(Exception")
} catch(ArithmeticException e) { System.out.println("Divide by Zero")
}"
22. Which of the following Array declaration statement is illegal?
23. Class is a ______ entity.
24. Which method will contain the body of the thread?
25. Once an interface has been defined, one or more _______ can implement that interface.