Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How will you invoke any external process in Java?
Home
JAVA
How will you invoke any external process in Java?
+1
vote
asked
May 5, 2021
in
JAVA
by
SakshiSharma
How will you invoke any external process in Java?
#invoke
external-process
java
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 5, 2021
by
SakshiSharma
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
0
votes
Q: Is there any case when finally will not be executed?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#finally-block
java
Java-questions-answers
+2
votes
Q: How can you make a class serializable in Java?
asked
May 6, 2021
in
JAVA
by
SakshiSharma
#serialization
java
Java-questions-answers
+1
vote
Q: In Java, How many ways you can take input from the console?
asked
May 6, 2021
in
JAVA
by
SakshiSharma
#input-console
java
Java-questions-answers
+1
vote
Q: How will you load a specific locale?
asked
May 12, 2021
in
JAVA
by
rajeshsharma
java
locale
Java-questions-answers
+1
vote
Q: is there is any difference between a Scrollbar and a ScrollPane?
asked
May 12, 2021
in
JAVA
by
rajeshsharma
java
scrollbar
scrollpane
Java-questions-answers
0
votes
Q: Is there any difference between nested classes and inner classes?
asked
May 5, 2021
in
JAVA
by
SakshiSharma
nested-class
inner-class
java
Java-questions-answers
0
votes
Q: Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?
asked
Apr 10, 2021
in
JAVA
by
Robindeniel
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
+2
votes
Q: Can you write a Java class that could be used both as an applet as well as an application?
asked
May 12, 2021
in
JAVA
by
rajeshsharma
java-class
java-application
java
Java-questions-answers
0
votes
Q: What do you mean by chained exceptions in Java?
asked
Apr 8, 2021
in
JAVA
by
SakshiSharma
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
Q: What do you mean by Hierarchical Inheritance in Java?
asked
Feb 8, 2021
in
JAVA
by
SakshiSharma
#hierarchical-inheritance
java-hierarchical
java
java-inheritance
Java-questions-answers
...