The Timer has started 10:00
-
1)
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.
- A) try block
- B) finally block
- C) catch block
- D) throws-clause
-
2)
In an applet class definition, the----------method takes the place of the constructor.
- A) paint();
- B) main();
- C) init();
- D) run() ;
-
3)
From following classes; which one can’t be instantiated?
- A) Super class
- B) Abstract Class
- C) Anonymous Class
- D) Concrete Class
-
4)
Converting bigger data types into smaller one is called ----------
- A) Up casting
- B) Down casting
- C) In casting
- D) Out casting
-
5)
Java provide ------------------
- A) Overloading
- B) Overriding
- C) Pointers
- D) Multiple Inheritance
-
6)
int x = 7/2; value of x is:
- A) 7
- B) 4
- C) 3
- D) 3.5
-
7)
In Java garbage collection is done by_______________
- A) JVM (Java Virtual Machine)
- B) Programmer
- C) Both JVM (Java Virtual Machine)and Programmer
- D) OS (Operating System)
-
8)
Which of following can be thrown using the throw statement?
- A) Error
- B) Throw able
- C) Exception
- D) Runtime Exception
-
9)
Servlet session and JSP session have different abilities.
- A) True
- B) False
-
10)
Which of the following is NOT a web technology of Java?
- A) Servlet
- B) JSP
- C) ASP
- D) JSF