Welcome to www.mcqtutorial.com!!!!
      
      
MCQ Tutorial Search
Home Search Add Question Today's History Discussion Board Job Portal JAVA Core JAVA Multi Threading

Collection

JDBC SWING SERVLET JSP Advance Java Other Struts Hibernate Mock Test Contact Feedback
Home
Search
Add Question
Today's History
Discussion Board
Job Portal
JAVA
Core JAVA
Multi Threading

Collection

JDBC
SWING
SERVLET
JSP
Advance Java Other
Struts
Hibernate
Mock Test
Subscribe/Unsubscribe
Email:
Social Media
Facebook

Misc Tutorials

References

Question and Answer Tutorial
Tutorials Point
Stack Overflow

MCQ Tutorial - JAVA->Collection

First Previous 1 2 3 4 Next Last
                        
6.) Which of the following are Java reserved words? 

       a.) run 
       b.) import 
       c.) default 
       d.) implement 

Options are:
A.) a & c
B.) b & c
C.) c & d
D.) a & b
                        
7.) Which interface provides the capability to store objects using a key-value pair?

Options are:
A.) Java.util.Set
B.) Java.util.Map
C.) Java.util.Collection
D.) Java.util.List
8.) Which collection class allows you to associate its elements with key values, and allows you to
retrieve objects in FIFO (first-in, first-out) sequence?

Options are:
A.) java.util.LinkedHashMap
B.) java.util.HashMap
C.) java.util.ArrayList
D.) java.util.TreeMap
9.) Which collection class allows you to access its elements by associating a key with an element's
value, and provides synchronization?

Options are:
A.) java.util.TreeSet
B.) java.util.TreeMap
C.) java.util.Hashtable
D.) java.util.SortedMap
10.) Find the Missing Statement in below code.

public class foo 
{
    public static void main(String[]args)throws Exception 
    {
        java.io.PrintWriter out = new java.io.PrintWriter(); 
        new java.io.OutputStreamWriter(System.out,true); 
        out.println("Hello"); 
    } 
}

What line of code should replace the missing statement to make this program compile?
Options are:
A.) import java.io.*;
B.) include java.io.*;
C.) import java.io.PrintWriter;
D.) No statement required
First Previous 1 2 3 4 Next Last
                        
Comment:
Name:Email:
Contact No.:
Copyright © 2014 by SBJ Group. All Rights Reserved. Developed and maintained by SBJ Group. Supported on Internet Explorer browser only