Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Which code fragments correctly create and initialize a static array of int elements?

static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }
static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }
static final int[] a = new int[2]{ 100,200 };
static final int a = { 100,200 };
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon