download Mastguru Android App

Question Detail

x=x+1 is equivalent to

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

1. Java intermediate code is known as

  • First code
  • Mid code
  • Byte code
  • None of above

2. Which driver is called as thin-driver in JDBC

  • Type-1 driver
  • Type-2 driver
  • Type-3 driver
  • Type-4 driver

3. Thread class is available in

  • java.io package
  • java.lang package
  • java.awt package
  • java.util package

4. In java, gc() method is available in which package

  • java.lang package
  • java.util package
  • java.awt package
  • java.io package

5. Which method can't be overidden

  • super
  • static
  • final
  • println
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment

  • Nandhakumar 10 years ago

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