πŸ§ͺ J2EE MCQ Quiz Hub

J2EE Mcq Question Set 1

Choose a topic to test your knowledge and improve your J2EE skills

What exception is thrown when Servlet initialization fails?





βœ… Correct Answer: 1

The classes in the _________ directory must be available for the β€œClassloader” of the application?





βœ… Correct Answer: 4

Which of the following statements are correct about the status of the Http response?





βœ… Correct Answer: 4

Why are beans used in the J2EE architecture instead of writing all the code in the JSPs?





βœ… Correct Answer: 1

What is correct about JSP Scriptlets ?





βœ… Correct Answer: 4

Which method is called first each time a servlet is called?





βœ… Correct Answer: 3

What is the scope of response object?





βœ… Correct Answer: 2

In JSP, how can you tell which HTTP method (GET or POST) is being used by the client request?





βœ… Correct Answer: 1

What is the difference between using β€œforward” and β€œsendRedirect()”?





βœ… Correct Answer: 2

How can a servlet call a JSP error page?





βœ… Correct Answer: 3

Any client request to access resources in the WEB-INF/ directory must be returned with a ________?





βœ… Correct Answer: 2

Which of the following is not an implicit object in JSP?





βœ… Correct Answer: 1

Which of the following is a challenge in a J2EE?





βœ… Correct Answer: 4

Which of the following is not a J2EE client?





βœ… Correct Answer: 4

Which of the following is not a web centric component?





βœ… Correct Answer: 1

Which of the following is not a reserved word?





βœ… Correct Answer: 4

Which one of the following that controls communication between tiers in J2EE multi tiers architecture?





βœ… Correct Answer: 2

Which of the following act as an interface between a component and the low level platform?





βœ… Correct Answer: 3

Which of the following is not a feature of Message Driven Bean?





βœ… Correct Answer: 2

A JMS message producer is created by





βœ… Correct Answer: 1

Which technology provides the flexibility to swap between XML processors with no application code changes?





βœ… Correct Answer: 4

Which is the serializable interface





βœ… Correct Answer: 1

Abstract class can’t be final in java.





βœ… Correct Answer: 1

It is ________ to have an abstract method.





βœ… Correct Answer: 3

How many abstract classes can a single program contain?





βœ… Correct Answer: 2

Which is a wrapper class?





βœ… Correct Answer: 1

Attribute in an applet tag is _________





βœ… Correct Answer: 3

Attribute in an applet tag is _________





βœ… Correct Answer: 2

JSP expression is represented by _____





βœ… Correct Answer: 4

JSP directive is represented by _____





βœ… Correct Answer: 1

What will specify IS A relationship?





βœ… Correct Answer: 2

Abstract class can be ______





βœ… Correct Answer: 2

log() method is available in which interface?





βœ… Correct Answer: 1

If a table has 2 columns with NOT NULL and UNIQUE constraints on it ..what will be the candidate/ primary key?





βœ… Correct Answer: 1

Super key can be of ______





βœ… Correct Answer: 3

Implicit cursors will be used in _____





βœ… Correct Answer: 4

comparison operator in SQL





βœ… Correct Answer: 1

How to give the title to a table?





βœ… Correct Answer: 3

How to give the italics style in html





βœ… Correct Answer: 3

What is the immediate superclass of Applet class?





βœ… Correct Answer: 2

______ class is a wrapper class for the character data type.





βœ… Correct Answer: 2

Which operator is used as a termination operator in SQL?





βœ… Correct Answer: 1

Return type of getparameter(string) is _______





βœ… Correct Answer: 1

Servlet is ______





βœ… Correct Answer: 3

ER diagram is __________





βœ… Correct Answer: 3

What will be the column heading for the given query? SELECT sal*10 supply FROM emp;





βœ… Correct Answer: 2

The syntax for the frame _______





βœ… Correct Answer: 2

_______ is the superclass of all classes that are in input streams.





βœ… Correct Answer: 1

Classloader is a part of _______





βœ… Correct Answer: 2

The argument for the service method





βœ… Correct Answer: 3

The package of Generic Servlet is ________





βœ… Correct Answer: 2

Array in java is ________





βœ… Correct Answer: 3