public class Hello {
public static void main(String args[]) {
System.out.println(" This is awesome "+args);
}
}
In the above code, why it is mandatory to mention String args[]
in main()
and why do we get "[Ljava.lang.String;@174e5edb"
as output when we print it?