J2EE (Java Platform, Enterprise Edition) MCQs

J2EE (Java Platform, Enterprise Edition) MCQs

Answer these J2EE (Java Platform, Enterprise Edition) MCQs and assess your grip on the subject of J2EE (Java Platform, Enterprise Edition). Scroll below and get started!

1: What types of messages are supported by JMS?

A.   Object Messages

B.   All

C.   Text Messages

D.   Map Messages

2: By which method we can delete a mail using JavaMail Api?

A.   Messages.setFlag(Flags.Flag.Remove,false);

B.   Messages.setFlag(Flags.Flag.Remove,true);

C.   Messages.setFlag(Flags.flag.Deleted,true);

D.   Messages.setFlag(Flags.flag.Deleted,false);

3: What type of messaging in provided by JMS?

A.   None

B.   Synchronous and Asynchronous

C.   Asynchronous

D.   Synchronous

4: Which class can send a message over specific protocol?

A.   Transport

B.   Folder

C.   Store

D.   Message

5: GetMessage() of Folder class returns?

A.   Enumeration of String

B.   List of Folder

C.   String array

D.   Message array

6: What does lookup() do in JNDI?

A.   Find the specified object which was given in the context

B.   Returns a enumeration of object of searched criteria

C.   Returns a enumeration of binding objects

D.   Returns a enumeration of all the NameClassPair's of current context

7: Which is true in case of JMS session?

A.   A JMS session can be locally transacted

B.   A JMS session can be non transacted

C.   A JMS session can participated in distributed transaction

D.   All

8: Among bellow protocol which can be used in Java Mail?

A.   All

B.   POP

C.   SMTP

D.   MIME

9: Which Protocol is used to deliver email to recipient mail Server?

A.   SMTP

B.   IMAP

C.   MAPI

D.   POP