This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes process method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "process method" Watch "process method" New topic

process method

arjun krishna

Joined: Mar 02, 2006
Posts: 7
Can i use process contructor in a prog from Process class.
pls send me a sample prog
Henry Wong

Joined: Sep 28, 2004
Posts: 20538

The Process class is abstract. You can't instantiate one directly.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

Are you talking about the java.lang.Process class? You create these using the Runtime.exec() methods or the ProcessBuilder class (in JDK 1.5). Process itself is an abstract class with no code in it at all -- it could have been an interface, and probably should have been. Because it's abstract, you can't create an instance of it. But if you could, it wouldn't do anything at all; only its platform-specific subclasses will actually start a process.

[Jess in Action][AskingGoodQuestions]
arjun krishna

Joined: Mar 02, 2006
Posts: 7
Hello sir,
Thank you..
I got it.
I agree. Here's the link:
subject: process method
It's not a secret anymore!