Advanced Java Multiple Choice Questions with Answers - 1

Question: 1

Which of the following is not a kind of exception that is thrown by JDBC method?

(A) SQL Exception

(B) DataRounding

(C) DataTruncation

(D) SQL Warning

Ans: B


Question: 2

Which of the following could be written with little knowledge of java?

(A) Java Server Pages

(B) Java Servlets

(C) Common Gateway Interface

(D) Java Community Program

Ans: A

Java Server Pages

Question: 3

Which of the following is a business component in J2EE?

(A) Enterprise Java Beans (EJB)

(B) Java servlet and JSP (Web)

(C) Applets

(D) Application clients

Ans: A

Enterprise Java Beans (EJB)

Question: 4

Which of the following is the main drawback of CGI?

(A) Interfacing with corporate infrastructure

(B) Dynamic web pages

(C) Resource Intensive

(D) Scalability

Ans: D


Question: 5

Which of the following modifiers can be applied to a constructor?

(A) volatile

(B) final

(C) private

(D) abstract

Ans: C


Related Questions