Can Java program written on Windows platfrom run in Linux and Mac?

Hi

I am currently building a java applet in windows platform. I am wondering whether this program can be run on other platforms (Linux and Mac Os), Because the requirement of this program is to be able to run on three different platfrom (windows, linux and Mac os). Really appreciate if someone can help me

Thank

[338 byte] By [frozenarmor] at [2007-9-30 12:42:53]
# 1
I can say with a high degree of certaintly that the answer is probably. Thats about 90% probably, which is a lot better than you will get with anything else. You may need to be careful of fonts and such, but GFI
EvilEdna at 2007-7-4 16:45:43 > top of Java-index,Administration Tools,Sun Connection...
# 2
The best way to know is to test. It is not hard to make a stupid mistake that makes your code not portable, especially if you're inexperienced.
jsalonen at 2007-7-4 16:45:43 > top of Java-index,Administration Tools,Sun Connection...
# 3
For instance:new File ("C:\Program Files\foo"); will fail on non-Windows platforms...-Alexis
am74686 at 2007-7-4 16:45:43 > top of Java-index,Administration Tools,Sun Connection...