Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Creating a software and Compatibility in Java

Hello guys, I haven't start programming and no experience about Java, but i need some information about creating software and compatibility. When you create a programs design for desktop computer (not apps for mobile or tablet) is it compatible for any kind of operating system? such as Linux or Mac. Like if you create it on any kind of platform, it will run in any Operating System?

Thanks and God Bless.

1 Answer

Hey Dennis,

This is one of Java's main strength, they always champion it's ability to "write once and run anywhere" because java first transforms it's code into byte code that the compiler runs, this means that as long as the computer has java installed on it, a java file can run on it.

So yes as long as the mac, or windows, or linux environment has java, they can run the code.

Thanks, I hope this helps.

Thanks :) <thumbs up>