- Java.lang - Void
- Java.lang - Throwable
- Java.lang - ThreadLocal
- Java.lang - ThreadGroup
- Java.lang - Thread
- Java.lang - System
- Java.lang - StringBuilder
- Java.lang - StringBuffer
- Java.lang - String
- Java.lang - StrictMath
- Java.lang - StackTraceElement
- Java.lang - Short
- Java.lang - SecurityManager
- Java.lang - RuntimePermission
- Java.lang - Runtime
- Java.lang - ProcessBuilder
- Java.lang - Process
- Java.lang - Package
- Java.lang - Object
- Java.lang - Number
- Java.lang - Math
- Java.lang - Long
- Java.lang - Integer
- Java.lang - InheritableThreadLocal
- Java.lang - Float
- Java.lang - Enum
- Java.lang - Double
- Java.lang - Compiler
- Java.lang - ClassLoader
- Java.lang - Class
- Java.lang - Character.UnicodeBlock
- Java.lang - Character.Subset
- Java.lang - Character
- Java.lang - Byte
- Java.lang - Boolean
- Java.lang - Home
Java.lang Package extras
Java.lang Package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.lang.ProcessBuilder Class
Introduction
The java.lang.ProcessBuilder class is used to create operating system processes.This class is not synchronized.
Class Declaration
Following is the declaration for java.lang.ProcessBuilder class −
pubpc final class ProcessBuilder extends Object
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 |
ProcessBuilder(List<String> command) This constructs a process builder with the specified operating system program and arguments. |
2 |
ProcessBuilder(String... command) This constructs a process builder with the specified operating system program and arguments. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method returns this process builder s operating system program and arguments. |
2 | This method sets this process builder s operating system program and arguments. |
3 | This method sets this process builder s operating system program and arguments. |
4 | This method returns this process builder s working directory. |
5 | This method sets this process builder s working directory. |
6 | This method returns a string map view of this process builder s environment. |
7 | This method tells whether this process builder merges standard error and standard output. |
8 | This method sets this process builder s redirectErrorStream property. |
9 | This method starts a new process using the attributes of this process builder. |
Methods inherited
This class inherits methods from the following classes −
java.lang.Object