download Mastguru Android App

Question Detail

Which collection class associates values witch keys, and orders the keys according to their natural order

  • java.util.HashSet
  • java.util.LinkedList
  • java.util.TreeMap
  • java.util.SortedSet
Similar Questions :

1. Which method is used to perform DML statements in

JDBC

  • execute()
  • executeUpdate()
  • executeQuery()
  • None of above

2. Which class cannot be subclassed (or extended) in java?

  • abstract class
  • parent class
  • Final class
  • None of above

3. Why we use array as a parameter of main method

  • it is syntax
  • Can store multiple values
  • Both of above
  • None of above

4. In Runnable, many threads share the same object instance

  • True
  • False

5. x=x+1 is equivalent to

  • ++x
  • x++
  • x=x-1
  • None of these
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment