Question about Java

Doodoo

Golden Member
Feb 14, 2000
1,423
0
76
Here i am at 4 am studyin for a midterm...got two questions...Why is Java considered a platform and not just a language...and what exactly is the Java Virtual Machine and what does it do? Thanks
 

1) It is a platform because it runs on any platform
2) The VM is a virtual platform. See answer #1

Java also supports recursion.
 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
No offence intended but if its 4am and you're cramming for a Java midterm and you don't even know the answers to those questions then I think you are doomed to fail! Goodluck :)
 

andri

Senior member
Aug 12, 2000
339
0
0
Java code is compiled into a `bytecode´, similar to something like .exe's. It's a platform because JVM, the Java Virtual Machine that actually executes the bytecode, can and has been implemented in hardware. Also, the Java bytecode is sub-JVM-platform independent, a great plus.