-1

Possible Duplicate:
What Issues prevent Java applications from working on multiple platforms?

I am starting to learn Java and I am researching if there are significant differences between Java on Linux (Ubuntu) and on Windows?

Thank you!

Community
  • 1
  • 1
r2b2
  • 1,255
  • 5
  • 13
  • 34

5 Answers5

3

Write once, run everywhere

This is Java's philosophy. The only thing that differs on different platforms is the JVM which converts Java bytecode to the actual machine code.

Egor
  • 39,695
  • 10
  • 113
  • 130
2

Java is the same everywhere : JVM.

Read this , might help.

Community
  • 1
  • 1
Kazekage Gaara
  • 14,972
  • 14
  • 61
  • 108
  • Thanks. I just needed someone to tell me that because as a first time java coder that's one of my hesitations. I've been programming on PHP and Ruby for quite some time and now I want to try mobile programming. – r2b2 Jul 22 '12 at 10:23
2

The Java Language specification is the same everywhere. What differs is the JVM implementation which is specific to the platform.

Razvan
  • 9,925
  • 6
  • 38
  • 51
1

It depends on the VM you are using. Depending on it, some things might differ - the size of boolean for instance is dependent on VM. If you use the same VM in both linux and windows, then nothing will differ.

Mohan
  • 1,850
  • 1
  • 19
  • 42
0

1. As its famously know "WORA" (Write Once Run Anywhere).

2. There will be few noticeable differences if you use AWT on Window and Linux, as AWT will use the Peer Components of the underlying platform, for the look and feel .

Kumar Vivek Mitra
  • 33,294
  • 6
  • 48
  • 75