Environment mcq questions and answers pdf

in Epub by

Each set environment mcq questions and answers pdf of 5 EASY level difficulty questions 1 mark each. Each set consists of 10 MEDIUM level difficulty questions 2 mark each.

Each set consists of 10 HARD level difficulty questions 3 mark each. This quiz have been designed to check beginners and experienced Java developers skills. Q1 – Q5, 5 EASY level difficulty questions 1 mark each. Which of these is not a interface in the Collections Framework? Which interface restricts duplicate elements? Which of these collection class has the ability to grow dynamically? Q6 – Q15, 10 MEDIUM level difficulty questions 2 mark each.

What implementation of Iterator can traverse a collection in both directions? The Comparable interface contains which called? Which is faster and uses less memory? Which is best suited to a multi-threaded environment? Which does NOT implement the Collection interface? Which provides better performance for the insertion and removal from the middle of the list?

Q16 – Q25, 10 HARD level difficulty questions 3 mark each. What guarantees type-safety in a collection? The most used interfaces from the Collection framework are? Which of these is synchronized? Which of these allows the storage of many null values? Vector extends which of these? Enumeration returned by Vector is?

From Java 5 onwards, which one of these is recommended to replace Hashtable? Which does not allow to store a null value? Iterator returned by Vector is? What describes how well an algorithm performs in best, average or worse case scenarios? An ordered array has a search time complexity of? Which Map class must be preferred in multi-threading environment to maintain natural order of keys? Which allows the removal of elements from a collection?