Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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");
}
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What are static blocks and static initalizers in java ?

0 Answers  


Which variable is the independent variable?

0 Answers  


How do you use spaces in java?

0 Answers  


Which is better singleton or static class?

0 Answers  


How are commas used in the initialization and iteration parts of a for statement?

2 Answers  


Why is java not 100% pure oops?

0 Answers  


What happens to the Exception object after handling an exception?

0 Answers  


What is difference between static variable and global variable?

0 Answers  


What are the rules for naming an array?

0 Answers  


Why can't we override private static methods?

0 Answers  


Difference between static methods, static variables, and static classes in Java.

1 Answers  


What is the benefit of singleton pattern?

0 Answers  


Categories