Because of Bytecodes Java is secure and Portable.
Read this post on javalanguageprogramming.blogspot.com