Can we have any code between try and finally blocks?
No Answer is Posted For this Question
Be the First to Post Answer
What are the different types of java?
What is the difference between jsp and servlet?
How many types of methods are there in java?
Where is jre installed?
How do you empty a list in java?
What is the role of the java.rmi.naming class?
Can you tell me range of byte?
What is super in java?
What methods are used to get and set the text label displayed by a button object?
What is a Wrapper class?
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"); } }
What is the use of keywords in java?