Question Detail

x=x+1 is equivalent to

  • ++x
  • x++
  • x=x-1
  • None of these
Similar Questions :

1. Converting a primitive type data into its corresponding wrapper class object instance is called

  • boxing
  • wrapping
  • instantiation
  • autoboxing

2. Which method is used to perform DML statements in

JDBC

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

3. Which method executes only once

  • start() method
  • init() method
  • stop() method
  • destroy() method

4. Minimum threads in a program are

  • 1
  • 2
  • 5
  • Many

5. Which method of the Applet class displays the result of applet code on screen

  • run() method
  • paint() method
  • drawString() method
  • main() method
Read more from - Java Objective Questions Answers -Chapter 1