Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Bounty
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Displaying Operating System details in Java Program
WhatsApp
Alagunila Meganathan
Aug 03
2016
608
0
0
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
Up Next
Displaying Operating System details in Java Program