Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Why use the byte code in Java?  RSS feed

 
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.
 
lowercase baba
Posts: 12734
51
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.
 
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
Posts: 12734
51
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.
 
Marshal
Posts: 63849
209
  • 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.
 
Sheriff
Posts: 13392
221
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.  
 
Marshal
Posts: 6634
443
BSD Linux Mac OS X VI Editor
  • 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
Marshal
Posts: 6634
443
BSD Linux Mac OS X VI Editor
  • 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
Marshal
Posts: 6634
443
BSD Linux Mac OS X VI Editor
  • 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"
 
ice is for people that are not already cool. Chill with this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!