Java PRP important questions Wipro

Java PRP important questions Wipro

j2ee prp important mcq question and answer wipro

Hey guys, I know you are worried about your prp assessment. Before going ahead I would say to you be relax and study hard. It is not tough like that some people says. Here I am going to provide you some  j2ee prp important mcq question and answer. questions may be which going to help you in your prp assessment test. Remember I am not saying that these questions will be ask in your prp assessment test but thse question will give you an idea which type of questions they ask. 

 1. Which of these packages contain all the collection classes?

a) java.lang

b) java.util

c) java.net

d) java.awt

Answer: b

2. Which of these classes is not part of Java’s collection framework?

a) Maps

b) Array

c) Stack

d) Queue

Answer: a

3. Which of this interface is not a part of Java’s collection framework?

a) List

b) Set

c) SortedMap

d) SortedList

Answer: d

4. What will be the output of the following java code?

class Test

{

  public static void main(String args[])

{

   int x=3;

   int y=~x;

   int z;

   z=x>>y?x:y;

   System.out.println(z);

}

}


a) 0

b) 1

c) 4

d) 3

Answer: d

5. Which of these methods deletes all the elements from invoking collection?

a) clear()

b) reset()

c) delete()

d) refresh()

Answer: a

6. What is Collection in Java?

a)  A group of objects

b) A group of classes

c) A group of interfaces

d) None of the mentioned

Answer: a

7. Which of these interface is not a part of Java's collection framework?

a) List

b) Set

c) SortedMap

d) SortedList

Answer: d

8. Which of the following is the advantage of BigDecimal over double?

a) Syntax

b) Garbage collection

c) Memory usage

d) Precision

Answer: d


9. Which of these interface declares core method that all collections will have?

a) set

b) EventListner

c) Comparator

d) Collection

Answer: d

10. Which of these interface handle sequences?

a) Set

b) List

c)) Comparator

d)) Collection

Answer: b

11. Which of these interface must contain a unique element?

a) Set

b) List

c) Array

d) Collection

Answer: a

12. Which of these is Basic interface that all other interface inherits?

a) Set

b) Array

c) List

d) Collection

Answer: d

13. Which of these collection classes has the ability to scale dynamically?

a) Array

b) Arrays

c) ArrayList

d) All the answers are true

Answer: c

14. HashMap allows _____________

a) null values

b) null key

c) Both A & B

d) None of the above

Answer: c

Also Read: J2EE prp important mcq question and answer

Post a Comment

0 Comments