TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Displaying Operating System details in Java Program
Alagunila Meganathan
Aug 03
2016
Code
567
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
OpertingSystemInfo.r
public
class
OpertingSystemInfo
{
public
static
void
main(String[] args)
{
String nameOS =
"os.name"
;
String versionOS =
"os.version"
;
String architectureOS =
"os.arch"
;
System.out.println(
"\n The information about OS"
);
System.out.println(
"\nName of the OS: "
+ System.getProperty(nameOS));
System.out.println(
"Version of the OS: "
+ System.getProperty(versionOS));
System.out.println(
"Architecture of THe OS: "
+ System.getProperty(architectureOS));
}
}
Java
Operating System