aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming and IT Security Basics
  • If MyProg.java were compiled as an application and then r...
Multiple choice technology

If MyProg.java were compiled as an application and then run from the command line as: java MyProg I like testswhat would be the value of args[ 1 ] inside the main( ) method?

  1. MyProg

  2. "I"

  3. "like"

  4. 3

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • What will be printed out if this code is run with the following command line? java myprog good morning publ...
  • What will be printed out if this code is run with the following command line? java myprog good morning publ...
  • What will be printed out if this code is run with the following command line? java myprog good morning publ...
  • What will be printed out if this code is run with the following command line? java myprog good morning publ...
  • What will be the output of the program? public class Test { public static void main (String[] args) { Strin...
  • class A { public static void main(String args[]) { System.out.println(args.length); } } what is the output ...
  • class Fork { public static void main(String[] args) { if(args.length == 1 | args[1] .equals("test")) { Syst...
  • class myfirstprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy