+ 5
why we use Runtime.getRuntime().<methos in Runtime class>??
Basically all methods of Runtime class is in Runtime but We use Runtime.getRuntime().<methods present in Runtime classs>??? can we use like //Runtime.exec()???? Explain plzzzz...............
1 Antwort
+ 3
https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#getRuntime()
https://www.tutorialspoint.com/java/lang/java_lang_runtime.htm
it tells your program how to interface with the system in which is running.