If you had an account on forum.suprbay.org with at least one post, you do not need to re-register. Your account is still active and your Suprbay username and password will work.

Regarding to Purpose for .class files in Java
#1
Hello All, I am working on client project and I am trying to understand how .class files work in java and what's their purpose. I found some information online, but I get unsatisfying explanations. As soon as we run the compiler on Interviewbit online and we get the .class file, which is bytecode. Is this machine-readable or not? 

And if not, this is why we need the interpreter for the program to run successfully? Likewise, since the .class record is what could be compared to our .java programs, for what reason would someone be able to run a java program straight away simply by running the .class document utilizing VM and they could have to have the .java record also?
Reply
#2
Yes, it's machine-readable.

The javac command compiles the .java file and converts it to .class.

More about it here: https://docs.oracle.com/javase/7/docs/te...javac.html

An interpreter has nothing to do with this.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] OfflineBay v2 - Open source and No more Java dependency techtac 55 285,224 Apr 01, 2022, 13:42 pm
Last Post: UnknownIdot
  What's a good way to host files on a home website NeonPinkQuartz 3 16,457 Jun 17, 2020, 18:22 pm
Last Post: Moe
  Popularity of Java in Today's World RobertX 6 28,955 Feb 02, 2020, 18:05 pm
Last Post: onlytorrents
  https ssl algorithm entirely in java/script ejonessss 4 15,742 Nov 14, 2016, 15:56 pm
Last Post: blu_people
  Java Patterns RobertX 0 11,787 Sep 18, 2016, 03:43 am
Last Post: RobertX



Users browsing this thread: 1 Guest(s)