download Mastguru Android App

Question Detail

x=x+1 is equivalent to

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

1. Package of drawstring() method is

  • java.applet
  • java.io
  • javax.swing
  • java.awt

2. Applet always executed on

  • Client side
  • Server Side

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

  • boxing
  • wrapping
  • instantiation
  • autoboxing

4. Which of the following below are valid isolation levels in J2EE

  • TRANSACTION_READ_UNCOMMITTED
  • TRANSACTION_SERIALIZABLE
  • Only A
  • Both A and B

5. Which method executes only once

  • start() method
  • init() method
  • stop() method
  • destroy() method
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment

  • Nandhakumar 11 years ago

    ans is D,becoz X=X+1 equivalent is X += 1, not X++