What is the difference between a constructor and a method?
No Answer is Posted For this Question
Be the First to Post Answer
Difference between this() and super() ?
What is java argument list?
Which collection is sorted in java?
How to store image in arraylist in java?
Why we cannot override static method?
How many ways can we create singleton class?
What is null data type?
How to print nodes of a Binary tree?
What is a native method?
Describe what happens when an object is created in java ?
What is java literals?
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"); } }