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

Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

0 Answers  


What is implicit object in java?

0 Answers  


How many times garbage collector will invoke an object?s finalize() method?

4 Answers  


Discuss 2D arrays.

0 Answers   Amdocs,


different between exception and error? explaim check and uncheck exception

4 Answers  


Does constructor be static?

0 Answers  


where do you place after you did code in java

2 Answers  


How do you generate random numbers in java?

0 Answers  


What classes of exceptions may be thrown by a throw statement?

0 Answers  


Why hashset is used in java?

0 Answers  


What is the difference between yield() and sleep()?

0 Answers  


What do you know about the garbate collector?

0 Answers  


Categories