6 years ago in Introduction To Java

Which one of the following will declare an array and initialize it with five numbers?

[A] Array a = new Array(5);
[B] int [] a = {23,22,21,20,19};
[C] int a [] = new int[5];
[D] int [5] array;
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 146
Correct 48
Incorrect 35
Viewed 63

Answers

Guest
Guest
Mina Atef
Mina Atef - 4 years ago

Mina Atef from Cairo, Egypt is saying Array a = new Array(5); is correct answer

Kuheli Mitra
Kuheli Mitra - 4 years ago

Kuheli Mitra from Bangalore, India is saying int [] a = {23,22,21,20,19}; is correct answer

Sai Krishna
Sai Krishna - 4 years ago

Sai Krishna from Palakollu, India is saying int [] a = {23,22,21,20,19}; is correct answer

Dimana Ignatova
Dimana Ignatova - 4 years ago

Dimana Ignatova from Sofia, Bulgaria is saying int [] a = {23,22,21,20,19}; is correct answer

pritish mohapatra
pritish mohapatra - 4 years ago

pritish mohapatra from Bengaluru, India is saying int [] a = {23,22,21,20,19}; is correct answer

Related Questions

Which container use border layout

  • [A] Fram
  • [B] Dialog
  • [C] window
  • [D] ALL

Which of the following is not keyword in java ?

  • [A] null
  • [B] import
  • [C] volatile
  • [D] package

JIT meaning

  • [A] just in time
  • [B] java in time

javac is used for?

  • [A] compilation
  • [B] execution