• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what results byte code in java

 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

question is same as the title of the post. Apart from a class what may result in bytecode ??

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interface, Enum
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen yadav wrote:Hi ranchers,

question is same as the title of the post. Apart from a class what may result in bytecode ??


Everything in Java gets converted to byte code.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interesting paragraph about Java bytecode -


The most common language targeting Java Virtual Machine by producing Java bytecode is Java. Originally only one compiler existed, the javac compiler from Sun Microsystems, which compiles Java source code to Java bytecode; but because all the specifications for Java bytecode are now available, other parties have supplied compilers that produce Java bytecode. Examples of other compilers include:

Jikes, compiles from Java to Java bytecode (developed by IBM, implemented in C++)
Espresso, compiles from Java to Java bytecode (Java 1.0 only)
GCJ, the GNU Compiler for Java, compiles from Java to Java bytecode; it is also able to compile to native machine code and is available as part of the GNU Compiler Collection (GCC).


Regards,
Dan
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java compilers are the obvious creators of byte code, but it's possible for any code written in almost any language to produce byte code. Your google keywords are "byte code generation".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic