The Artima Developer Community
Sponsored Link

Java Answers Forum
Please if you know "What is Java Byte Code

3 replies on 1 page. Most recent reply: Apr 23, 2003 3:05 AM by Adam Duffy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Chrystal

Posts: 2
Nickname: redsatin
Registered: Apr, 2003

Please if you know "What is Java Byte Code Posted: Apr 21, 2003 10:44 AM
Reply to this message Reply
Advertisement
Hello, I am a beginner Java programmer (currently in a course) and I need to submit a document on the Java Byte Code. I have searched and searched, though I can't get an exact definition. I really want to understand the logics of how Java Byte Code transforms into binary when being placed into a JVM. If I could get an actual breakdown of a Java program being transformed into binary format, it would be the BEST!!!!

Thanks alot..


Luka

Posts: 5
Nickname: luka
Registered: Apr, 2003

Re: Please if you know "What is Java Byte Code Posted: Apr 21, 2003 11:21 AM
Reply to this message Reply
Hi,

Java Byte Code is what the compiler generates in class file when fed a java source file. JBC is not human readable, however you can view the opcodes for the JVM by typing some command, javap -c followed by the class name without ".class" extension.

I use a windows machine

ciao

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Please if you know "What is Java Byte Code Posted: Apr 21, 2003 1:33 PM
Reply to this message Reply
There is quite a lot of material on this kind of subject matter on Artima; you can start looking here:
http://www.artima.com/java/index.html

And this chapter may be of particular interest:
http://www.artima.com/insidejvm/ed2/jvm.html

Bytecodes are virtual machine codes stored in a class file. They are analogous to the machine codes that the CPU processes (often expressed in assembly language, for human reabability, but really nothing more than numeric values). The JVM reads a stream of bytecodes and processes each one (and its operands) in sequence.

Really, you don't need a Java compiler at all, you could just type in the numeric values bytecodes directly and save it as a class file.

Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Please if you know "What is Java Byte Code Posted: Apr 23, 2003 3:05 AM
Reply to this message Reply
> Really, you don't need a Java compiler at all, you could
> just type in the numeric values bytecodes directly and
> save it as a class file.

Sounds like fun!! ;)

Adam

Flat View: This topic has 3 replies on 1 page
Topic: Avoiding this error Previous Topic   Next Topic Topic: consruct a timetable

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use