Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

process method

 
arjun krishna
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use process contructor in a prog from Process class.
pls send me a sample prog
 
Henry Wong
author
Marshal
Pie
Posts: 21003
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Process class is abstract. You can't instantiate one directly.

Henry
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.
 
arjun krishna
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello sir,
Thank you..
I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic