Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is an incorrect Statement?
  2. A.
    It is necessary to use new operator to initialize an array.
    B.
    Array can be initialized using comma separated expressions surrounded by curly braces.
    C.
    Array can be initialized when they are declared.
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Array can be initialized using both new and comma separated expressions surrounded by curly braces example : int arr[5] = new int[5]; and int arr[] = { 0, 1, 2, 3, 4};


Be The First To Comment