+1 vote
in JAVA by
How will you invoke any external process in Java?

1 Answer

0 votes
by
By Runtime.getRuntime().exec(?) method. Consider the following example.

public class Runtime1{  

 public static void main(String args[])throws Exception{  

  Runtime.getRuntime().exec("notepad");//will open a new notepad  

 }  

}

Related questions

+1 vote
asked May 12, 2021 in JAVA by rajeshsharma
0 votes
asked Feb 8, 2021 in JAVA by SakshiSharma
...