download Mastguru Android App

Question Detail

Which of the following statements about arrays is syntactically wrong

  • arrayName[] p = new arrayName[5];
  • arrayName p[5];
  • arrayName[] p [];
  • arrayName p[][] = new arrayName[2][];
Similar Questions :

1. All methods of interface are public and abstract

  • True
  • False

2. Inheritance means

  • Sub class extends super class
  • Sub class extends Base class
  • Sub class create object of super class
  • All of the above

3. Which statement is static and synchronized in JDBC API

  • executeQuery()
  • executeUpdate()
  • getConnection()
  • prepareCall()

4. Object which can store group of other objects is called

  • Collection object
  • Java object
  • Package
  • Wrapper

5. Interfaces helps in which type of inheritance

  • Multiple inheritance
  • Multilevel inheritance
  • Hierarchical inheritance
  • None of above
Read more from - Java Objective Questions Answers -Chapter 1
Post a comment