• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the other way to store the compiled java source other than .class file ?  RSS feed

 
vinayak jog
Ranch Hand
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading Java Virtual Machine specification. I am puzzled with the following statement

"Compiled code to be executed by the Java Virtual Machine is represented using a hardware- and operating system-independent binary format, typically (but not necessarily) stored in a file, known as the class file format."
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bytecode is just that - bytes. It can just as well be stored in a DB. Or it can be stored in memory in a byte[], if there is no need for persistence once the process is finished. See http://www.javaranch.com/journal/200711/Journal200711.jsp#a4 for an article of mine that describes a scenario where classes are created in memory, but never stored anywhere.
 
vinayak jog
Ranch Hand
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Ulf Dittmer. Article is cool as well, thumbs up!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!