Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


samar
Java class
1 Answer(s)      3 years and 10 months ago
Posted in : Java Interview Questions


What is the purpose of the Runtime class?

Advertisement
View Answers

October 26, 2010 at 4:23 PM


Hi,

Here is the answer,

The Runtime class provide system level functionality to Java applications.

The facilities of these classes are not necessarily portable across host operating system and may need to be recompiled when porting.

Some of the facilities provided are:

  1. Reading from the keyboard as input

  2. Writing to console output

  3. Interaction with JVM process for event notification, or information such as free memory, etc

  4. Reading/writing system properties/environment variables

  5. executing other programs from within java apps.

Thanks.



Related Tutorials/Questions & Answers:
Java class
Java class  What is the purpose of the Runtime class
java class
java class  write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg
Advertisements
java class
java class  please send me the answer of the question which i have send according of java class assoon as possible . Write a java program to display.... a. Create a window class. b. Create frame within the window class. c. Extend
java class - Java Beginners
java class  How to run a java class(Mail.java) automatically in tomcat server for a particular time
Java Class Size
Java Class Size  How to determine size of java class
converting java class to java fx class
converting java class to java fx class   i am working on a java project which would convert text to speech and speech to text. i have developed a java file that would work for text to speech. it is working fine as a .java file
Java inner class and static nested class
Java inner class and static nested class  Java inner class and static nested class
Java inner class
Java inner class  What are inner class and anonymous class
class method in java
class method in java  How to write a class method in Java?   You must read Java - Class, Object and Methods in Java
Java adapter class
Java adapter class  What is adapter class
Java dictionary class
Java dictionary class  What is the Dictionary class
java class - Java Beginners
java class  Define a class product with the following data members 1.Product number int(Auto generated) 2.Product name char [20] 3.Price float... program to execute the above class ad functions for 5 products
Example of HashMap class in java
Example of HashMap class in java. The HashMap is a class in java collection framwork. It stores values in the form of key/value pair. It is not synchronized
Java class file
Java class file  How do i open a java class file using eclipse
java Class - Java Beginners
java Class  Can anyone please explain what this code means? import java.util.TreeMap; import java.util.Iterator; //Please tell me what this class declaration means???????????? public class ST, Val> implements Iterable
Java abstract class
Java abstract class  Can an abstract class be final
Java file class
Java file class  What is the purpose of the File class
java Math class
java Math class  Why are the methods of the Math class static
Java math class
Java math class  Can you instantiate the Math class
abstact class - Java Beginners
abstact class  write a java program to implement an animal abstact class
Java System class
Java System class  What is the purpose of the System class
java anonymous class
java anonymous class  Can an anonymous class be declared as implementing an interface and extending a class
java class - Java Beginners
java class  wts need of this code? UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());   Hi Friend, If you want to give Window look to your frame,dialog box etc,then you have to use the following
The nested class - Java Beginners
The nested class  Hi, What is nested class in Java? What is the benefits of nested class? Write examples of nested class. Thanks   .../java/n/java-nested-class.shtml Thanks
java class - Java Beginners
java class  hi sir, i have to compile two classes(eg:controller.java and client.java) and i have imported some packages in it using jar files(like Activation.jar and servlet.jar) when ever i am running in command promt
How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java
java object class methods
java object class methods  What are the methods in Object class?  There are lots of methods in object class. the list of some methods are as- clone equals wait finalize getClass hashCode notify notifyAll
Java component class
Java component class  Which method of the Component class is used to set the position and size of a component
with out class - Java Beginners
with out class  can we write a program with out a class in core java?if yes,give example
to create a java class and methods
to create a java class and methods  How to create a java class without using the library class to represent linked lists of integers and also provide it with methods that can be used to reverse a list & append two lists.Also
Class and method question, Java?
Class and method question, Java?  Consider a Java class that you could use to get an acceptable integer value from the user. An object of this class... getValue b. implement the class in Java c. Write some Java statements that test
abstract class - Java Beginners
abstract class  what exactly is abstract class and in which cases its... and if possible send simple java programs showing its use.  Hi friend, In java programming language, abstract classes are those that works only
Example of HashSet class in java
Example of HashSet class in java. In this part of tutorial, we will introduce you to about the HashSet class.  It is collection. It stores only unique. You can not store duplicate value. Java hashset example. How
Java nested class example
Java nested class example  Give me any example of Nested Class.   Nested Class: Class defined within another class is called nested class. Nested class is divided into two parts- 1.Static 2.Non-static Static
Abstract class and interface in Java
Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between an interface and an abstract class: At the same time multiple interfaces can
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get
compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get
3 queries on java class
3 queries on java class  Hey. I need to do 3 queries on same class ( JAVA) One is to populate the combobox, the another one to populate tje jlist and the last one to use on button to open a file from database (BLOB) Can some
Abstract class - Java Beginners
Abstract class  Why can use abstract class in java.?when abstract class use in java.plz Explain with program.   abstract class abs{ public void display(){ } public abstract void display1(); } public class win
class static - Java Beginners
class static  When do we declare a member of a class static?  Hi friend, public class HowToAccessStaticMethod{ int i; static int j... information on Static in Java visit to : http://www.roseindia.net/java/beginners
class Calendar - Java Beginners
class Calendar  Design the class Calender so that the program can... add the appropriate number of days to Monday, January1, 1500. for the class... the problem visit to : http://www.roseindia.net/java/java-get-example
Java Class Diagram
Java Class Diagram  How to create a class diagram for the process of buying glasses from the viewpoint of the patient. The first step is to see an eye doctor who will give the patient a prescription. Once the patient has
java-wrapper class
java-wrapper class  dear people, may i know how to convert primitive data type into corresponding object using wrapper class with example please!!!   public class IntToIntegerExample { public static void
Java Class Question?
Java Class Question?  Create a class names Purchase Each purchase contains an invoice number, amount of sale and amount of sales tax. Include set methods for the invoice number and sale amount. Within the set() method
what is the size of java class
what is the size of java class  Could anyone tell me how to find the size of the class given below. public class Sample { private int x; private int y; private char ch; public static void main(String[] args) { Sample
Java Class Question?
Java Class Question?  1. Create an application names Numbers whose main() method holds two interger variables Assign values to the variables pass... and display the results. 2. add a method names product() to the Number class
JAVA CLASS INHERITANCE
JAVA CLASS INHERITANCE  Someone please help me write this program. Create a class called Accounts that has the following members: i)An instance integer variable called acc_no. ii) An instance string variable called acc_name. ii
Java Class Question?
Java Class Question?  Write an application that prompts the user to make a choice for a Coffee cup size, S for Small, T for Tall, G for Grande and V for Venti ? the prices of the cup sizes will be stored in a parallel double
class - Java Beginners
Class java.lang.nullpointerexception  When the class java.lang.nullpointerexception occurs
java: implement a class queue
java: implement a class queue  Implement a class Queue which supports the following operations: boolean isEmpty() Returns true if the queue is empty, and false otherwise. int peak() Returns the value at the front of a non
Advertisements
 

 

 

DMCA.com