aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what results byte code in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what results byte code in java" Watch "what results byte code in java" New topic
Author

what results byte code in java

naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

Hi ranchers,

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

John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Interface, Enum
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

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.


Mohamed Sanaulla | My Blog
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
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


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what results byte code in java