Menu
Question Index
...

What will be the output of the following program?

public class TopToBottom {
    public static void main(String[] args) {
        char[] c = {'M','E','R','I','T',' ','C','A','M','P','U','S'};
        TopToBottom.Top(c);
    }
    private static void Top(char[] AssertionError) {
        System.out.println(AssertionError);
    }
}


(EMPTY)
MERIT CAMPUS
Some other output
Output can not be determined
Compilation Error or Runtime Error

Doubts

Problems

Topic: Creating Array Of Objects In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App