Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Which of these method is used to make a bit zero specified by the index?
(a) put()
(b) set()
(c) remove()
(d) clear()
Correct answer is (d) clear()For explanation: None.
Correct answer is (d) clear()
For explanation: None.
See lessWhich class does all the Enums extend?
(a) Object
(b) Enums
(c) Enum
(d) EnumClass
Right choice is (c) EnumEasiest explanation: All enums implicitly extend java.lang.Enum. Since Java does not support multiple inheritance, an enum cannot extend anything else.
Right choice is (c) Enum
Easiest explanation: All enums implicitly extend java.lang.Enum. Since Java does not support multiple inheritance, an enum cannot extend anything else.
See lessHow is Arrays.asList() different than the standard way of initialising List?
(a) Both are same
(b) Arrays.asList() throws compilation error
(c) Arrays.asList() returns a fixed length list and doesn’t allow to add or remove elements
(d) We cannot access the list returned using Arrays.asList()
The correct answer is (c) Arrays.asList() returns a fixed length list and doesn’t allow to add or remove elementsEasiest explanation: List returned by Arrays.asList() is a fixed length list which doesn’t allow us to add or remove element from it.add() and remove() method will throw UnSupportedOperatRead more
The correct answer is (c) Arrays.asList() returns a fixed length list and doesn’t allow to add or remove elements
Easiest explanation: List returned by Arrays.asList() is a fixed length list which doesn’t allow us to add or remove element from it.add() and remove() method will throw UnSupportedOperationException if used.
See lessWhich of the below author is not a part of GOF (Gang of Four)?
(a) Erich Gamma
(b) Gang Pattern
(c) Richard Helm
(d) Ralph Johnson
Correct option is (b) Gang PatternThe explanation: Four authors named Richard Helm, Erich Gamma, Ralph Johnson and John Vlissides published a book on design patterns. This book initiated the concept of Design Pattern in Software development. They are known as Gang of Four (GOF).
Correct option is (b) Gang Pattern
The explanation: Four authors named Richard Helm, Erich Gamma, Ralph Johnson and John Vlissides published a book on design patterns. This book initiated the concept of Design Pattern in Software development. They are known as Gang of Four (GOF).
See lessWhich of these is a Basic interface that all other interface inherits?
(a) Set
(b) Array
(c) List
(d) Collection
The correct option is (d) CollectionFor explanation I would say: Collection interface is inherited by all other interfaces like Set, Array, Map etc. It defines core methods that all the collections like set, map, arrays etc will have
The correct option is (d) Collection
For explanation I would say: Collection interface is inherited by all other interfaces like Set, Array, Map etc. It defines core methods that all the collections like set, map, arrays etc will have
See lessWhich of these method of DatagramPacket class is used to find the destination address?
(a) findAddress()
(b) getAddress()
(c) Address()
(d) whois()
Correct option is (b) getAddress()Easy explanation: None.
Correct option is (b) getAddress()
Easy explanation: None.
See lessWhich of these is the method which is executed first before execution of any other thing takes place in a program?
(a) main method
(b) finalize method
(c) static method
(d) private method
Right answer is (c) static methodFor explanation I would say: If a static method is present in the program then it will be executed first, then main will be executed.
Right answer is (c) static method
For explanation I would say: If a static method is present in the program then it will be executed first, then main will be executed.
See lessSet has contains(Object o) method.
(a) True
(b) False
The question was posed to me by my school principal while I was bunking the class.
My question comes from Data Structures-Set in portion java.util – The Collections Framework of Java
Correct choice is (a) TrueEasy explanation: Set has contains(Object o) method instead of get(Object o) method as get is needed for comparing object and getting corresponding value.
Correct choice is (a) True
Easy explanation: Set has contains(Object o) method instead of get(Object o) method as get is needed for comparing object and getting corresponding value.
See lessWhich of these is not abstract?
(a) Thread
(b) AbstractList
(c) List
(d) None of the Mentioned
Correct choice is (a) ThreadTo explain I would say: Thread is not an abstract class.
Correct choice is (a) Thread
To explain I would say: Thread is not an abstract class.
See lessWhat does MIME stand for?
(a) Multipurpose Internet Messaging Extension
(b) Multipurpose Internet Mail Extension
(c) Multipurpose Internet Media Extension
(d) Multipurpose Internet Mass Extension
The correct choice is (b) Multipurpose Internet Mail ExtensionTo elaborate: MIME is an acronym for Multi-purpose Internet Mail Extensions. It is used for classifying file types over the Internet. It contains type/subtype e.g. application/msword.
The correct choice is (b) Multipurpose Internet Mail Extension
To elaborate: MIME is an acronym for Multi-purpose Internet Mail Extensions. It is used for classifying file types over the Internet. It contains type/subtype e.g. application/msword.
See less