1. public class Alpha{
2. private static Character() ids;
3.
4. public static void main(
String[] args){
4. ids = new Character[args.length];
5. for (int i=0; i<ids.length; i++){
6. ids[i] = new Character( args[i] );
7. System.out.print( ids[i] );
8. }
9. }
10. }
What is correct?
A. Compilation fails.
B. The code runs with no output.
C. An exception is thrown at runtime.
D. The code runs, outputing a concatenated list of the arguments passed to the program.
Answer: A
Explanation: Compilation fails. Line 2: Return Type required
Why ??
Thanks !!