-->

Java program to Open Chrome Browser




//Save as Chrome.java


import java.util.*;
import java.io.*;

class Chrome
{
public static void main(String args[]) 
{
Runtime rs = Runtime.getRuntime();                         //get an instance of runtime
try{
rs.exec("google-chrome");                                       //execute google-chrome at the runtime 
}
catch(IOException e) {                                            //go for this if exception is encountered
System.out.println(e);
}
}
}