 Java programs can be executed natively using a Java processor.This isn't common and is mostly used for embedded systems.Java code running in the JVM has access to OS-related services, like disk I/O and network access, if the appropriate privileges are granted.