• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why use the byte code in Java?  RSS feed

 
Yevgeniy Kim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have such questions about Java:

1) What is a byte code?
2) What is it for?
3) Byte-code is a compressed version of the source file (code) java?
4) How does the compiler work with the byte code and how does the byte code work with
  The source of java?

If you can please the order of the questions write the answers thank you very much for your attention.
If possible, please explain with simple language of comparisons.

Many thanks to all who responded to my topic, I wish you success, health, love to you and your family.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This kind of looks like homework.  Wether it is or not, what do YOU think the answers are?

We prefer to guide and coach you to finding the answer yourself, rather than simply providing an answer.
 
Denuwan Hettiarachchi
Greenhorn
Posts: 4
Android Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we all know JAVA is platform independent language, which me we can “Write ones run anywhere”. Above feature implementing top on the JAVA virtual machine concept. The JVM (Java Virtual Machine) has an instruction set just like a real machine. The name given to this instruction set is Java Bytecode. Java Source code is human readable, when source code compile it converted to byte code.

Using above statement try to complete your homework :p
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Denuwan Hettiarachchi,

could you please cite your source for the above quote? It's the polite thing to do.
 
Denuwan Hettiarachchi
Greenhorn
Posts: 4
Android Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:Denuwan Hettiarachchi,

could you please cite your source for the above quote? It's the polite thing to do.


Fred,

I'm just trying to summarize my answer instead of directly providing answer, cause it seams Yevgeniy try to find the answers for homework,
that's why I put it as quote.
I'm sorry, if I'm confusing you.
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which case you shouldn't use quote tags; I shall remove them.
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Denuwan Hettiarachchi wrote:which me we can “Write ones run anywhere”.

I think you meant "Write once, run anywhere" (WORA)

A program that's all FFFF is not going to be a very useful one. 
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Denuwan Hettiarachchi wrote:Java Source code is human readable

You would be surprised how often it isn't.
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yevgeniy Kim wrote:If you can please the order of the questions write the answers

Hi Yevgeniy, let me take this from a bit other angle. That sounded a bit lazy from your side. All what you have asked has been already explained here, so you just would need to copy and paste (by citing the source/-s where you took it from).

All that reminds me my ex fellow students (some of them) who everytime though, "I'm smarter than everybody else... that's easy, will go on the site xXx and copy from there".

I suggest you change the way you think about your studies as soon as possible, preferably from now on - 15, April, 2017 12:14:43.
 
Liutauras Vilda
Sheriff
Posts: 4928
334
BSD
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Earlier, I wrote:I suggest you change the way you think about your studies as soon as possible

Once you get that habit that somebody else doing the job for you, everytime you lose an opportunity to learn something. Think about it well, that could be yours knowledge which would help you across the life, that could be yours skills which could help you at work... It is important to learn find answers for yourself and do the labor job yourself - as it is what you'll need to do at work. So, don't complicate things in your life right from the beginning, roll up your sleeves and please come up with the answers.

Don't forget to post your research findings here, so I could assign a "thum up"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!