J
JT
Here's what I'm pondering today, and I could be totally off track; it
wouldn't be the first time.
The JVM is what processes byte-code which is compiled Java code
(classes)? Let's say we have two operating systems, x and y.
OS x has a way to oh say... open the CD tray. OS y does not. So would
a JVM running on x include an implementation of the openCDTray and y
would not, or would it be excluded on both since it's not a common
function? This would mean that the JVM is an implementation of the base
operating system level calls... with me so far...I'm probably off in
left field somewhere... but...
Now lets say "Peter Programmer" has been given the assignment of writing
a Java GUI that will let the user press a button, and the CD tray will
open. How would Peter write this code once and have it run on an OS
that does not have an implementation for opening the CD tray, whether by
design (ie. a dumb terminal) or not.
wouldn't be the first time.
The JVM is what processes byte-code which is compiled Java code
(classes)? Let's say we have two operating systems, x and y.
OS x has a way to oh say... open the CD tray. OS y does not. So would
a JVM running on x include an implementation of the openCDTray and y
would not, or would it be excluded on both since it's not a common
function? This would mean that the JVM is an implementation of the base
operating system level calls... with me so far...I'm probably off in
left field somewhere... but...
Now lets say "Peter Programmer" has been given the assignment of writing
a Java GUI that will let the user press a button, and the CD tray will
open. How would Peter write this code once and have it run on an OS
that does not have an implementation for opening the CD tray, whether by
design (ie. a dumb terminal) or not.