What is System class and its purpose?
Answers were Sorted based on User's Feedback
Answer / ashokmail
System class is used to read the system properties.
by using system class you can read current running process,
current Runtime, time, and date.
Is This Answer Correct ? | 11 Yes | 3 No |
The System (along with 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
Is This Answer Correct ? | 4 Yes | 3 No |
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
What is basic concept of static in java ?
What is the purpose of static methods and static variables?
why the primitive data type have classes?
What is I/O Filter?
Can we pass a primitive type by reference in java? How
What is meant by javabeans?
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
why Interface used?
Describe how to implement singleton design pattern in struts.
Explain yield() method in thread class ?
When will you define a method as static?