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. Java intermediate code is known as

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

2. If nested try is possible

  • Yes
  • No

3. Can we declare abstract static method

  • Yes
  • No

4. Which of the following command is used to compile the Java program

  • java
  • javac
  • javap
  • none of these

5. Which keyword represents object of the present class

  • interface
  • package
  • this
  • static
Read more from - Java Objective Questions Answers -Chapter 1