j2ee Interview Questions and Answers
Ques:- Which of the following are not methods of the java.lang.string class?
A. substring
B. append
C. replace
D. concat
Ques:- Which of the following are J2EE modules?
A. EJB, Web, Application client and Java servlet
B. EJB, Web, Application client and Resource adapter
C. EJB, Web, Applet and Resource adapter
D. EJB, Web, Application client and Applet
Ques:- Which of the following should NOT be used to share data between servlets in a distributed web application?
A. Attributes of ServletContext
B. Enterprise Java Beans
C. Attributes of HttpSession
D. Database
Ques:- Which of the following statement is true?
A. J2EE component is a self contained functional software unit supported by a container
B. J2EE applications modules cannot be deployed as standalone units
C. Modules cannot be assembled into J2EE applications
D. J2EE components are written in the C programming language
Ques:- Which of the following is NOT an advantage of using the SessionFacade pattern?
A. Hides model complexity from the client
B. Reduces network traffic
C. Provides a simple interface to the client
D. Enables the client to control transactions
Ques:- JDBC driver is loaded by calling which of the following methods
A. call() method
B. class.forName () methods
C. close () method
D. connect () methods
Ques:- Which of the following file extension does the EJB modules of the application have?
A. .xml
B. .war
C. .ear
D. .jar
Ques:- Which one of the following tier in J2EE multi tier architecture provide internal functionality to J2EE application.
A. Web Tier
B. Enterprise Java Beans Tier
C. Enterprise Interface System Tier
D. Presentation Tier
Ques:- JMS Publish/Subscribe Messaging Domain is an
A. one to one relationship between sender and receiver
B. many to many relationship between sender and receiver
C. one to many relationship between sender and receiver
D. many to many relationship between sender and receiver
Ques:- Which of the following is a file that describes the style of elements that appear on the webpage?
A. cascading strong sheet
B. controlling style sheet
C. cascading style sheet
D. none of the above
Ques:- Which of the following is the main drawback of CGI?
A. Interfacing with corporate infrastructure
B. Dynamic web pages
C. Resource Intensive
D. Scalability
Ques:- Which of the following modifiers can be applied to a constructor?
A. volatile
B. final
C. private
D. abstract
Ques:- 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
Ques:- 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
Ques:- 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
Ques:- Choose the statement that best describes the relationship between JSP and servlets
A. Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage
B. JSP and sevlets are unrelated technologies
C. Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination
D. JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage
Ques:- Which of the following statements is NOT true about the Common Client Interface of JCA?
A. CCI cannot connect to non relational systems
B. CCI defines a set of interfaces and classes whose methods allow a client to perform typical data access operations
C. A resource adapter is not required to provide support for the CCI
D. CCI can connect to relational database systems
Ques:- Which of the following is not true in JMS point to point message domain?
A. There is only one receiver
B. The receiver can request a message
C. The receiver must acknowledge the receipt of the message
D. The receiver does not need to exist when the message is produced
Ques:- In JAAS, which of the following uses a CallbackHandler object?
A. AuthPermission
B. Policy
C. Credential
D. LoginModule