What will be the result of compiling following


What will be the result of compiling following code.

public class MyClass{

     public static void main(string args[]){

           system.out.println("In first main()");

     }

public static void main(char args[]){

          system.out.println('a);

     }

}

A) Code will not compile and will give "Duplicate main() method declaration" error

B) Code will compile correctly but will give a runtime  exception

C) Code will compile correctly and will print "In first main()" (without quotes) when it is run

D) Code will compile correctly and will print "a" (without quotes) when it is run.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: What will be the result of compiling following
Reference No:- TGS0632261

Expected delivery within 24 Hours