If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
No Answer is Posted For this Question
Be the First to Post Answer
What does it mean that a class or member is final?
Is main a keyword in java?
how and when compiler knows that the Java code throws the checked Exception.
what is hashmap& hashtable with example?
How many functional interfaces does java 8 have?
What is stack class in java?
how cani read a command line argument?(usingfile object).
What is preflight request?
What is the use of hashmap in java?
Define nashorn in java8.
Is space a char?
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }