download Mastguru Android App

Question Detail

x=x+1 is equivalent to

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

1. String is the predefined

  • Method
  • Class
  • Variable
  • Object

2. Interfaces helps in which type of inheritance

  • Multiple inheritance
  • Multilevel inheritance
  • Hierarchical inheritance
  • None of above

3. Which driver is efficient and always preferable for using JDBC applications

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

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 class cannot be subclassed (or extended) in java?

  • abstract class
  • parent class
  • Final class
  • None of above
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++