Given code snippet

public class Main {
     public static void main(String... str){ 
        Double double = str[0];
        System.out.println("Command Line Argument :" + double );
}
}

What will be the output if it is executed using Command Line Argument :- java Main  1.5 

Login to view solution

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media