About 1,070,000 results
Open links in new tab
  1. binary - What does Java byte code look like? - Stack Overflow

    Java is compiled from .java files to .class files. The .class files consist of a bunch of bytecodes. Bytecode is to Java what assembler is to C++. Each bytecode is a number no larger than a byte and has a mnemonic. The numbers and their mnemonic are what you have listed in …

  2. What does a good programmer's code look like? [closed]

    The best thing you can do is expose yourself to code. Look at other people's code. Open Source projects are a good source for that. You will find good code and bad code. The more you look at it, the better you will recognize what you determine to be good code and bad code. Ultimately you will be your own judge.

  3. java - What exactly does a jar file contain? - Stack Overflow

    A JAR file is actually just a ZIP file. It can contain anything - usually it contains compiled Java code (*.class), but sometimes also Java sourcecode (*.java). However, Java can be decompiled - in case the developer obfuscated his code you won't …

  4. java - How does the main method work? - Stack Overflow

    Apr 12, 2013 · It just so happens that the main method in Java has to return void. In C or C++, the main method can return an int and usually this indicates the code status of the finished program. An int value of 0 is the standard for a successful completion. To get the same effect in Java, we use System.exit(intValue)

  5. What does Java look like in memory - Stack Overflow

    Jan 30, 2010 · what does memory look like when I have a field that is an object that is defined in an outside class vs an inner class. I'll interpret this to be what does the memory layout in Java Virtual Machine look like, since the physical layout is up to the implementation of the JVM. For this I skimmed Structure of the Java Virtual Machine.

  6. Java - Is binary code the same as ByteCode? - Stack Overflow

    In conclusion, the way the terms Binary code and Java bytecode are opposed to each other is misleading. The reason was to make the distinction between the normal binary code which is machine dependant, and the Java bytecode (also a binary code) which is not.

  7. What are bytecodes and how does the JVM handle them

    Feb 4, 2010 · The JVM can switch to this new code just like when it initially switches from the interpreter to the JIT code. Just like there are other languages that compile to native code, like C, C++, Fortran; there are compilers for other languages that output JVM bytecode. One example is the scala language.

  8. What does a assembly language code look like? - Answers

    Aug 11, 2023 · A quick example of one type of Motorola assembly, to clear 10 32-bit memory locations might look like this: movea #$6000,ao move.l #10,d7 10$ clr.l (a0+) subq.l #1,d7 bne.s 10$ rts Trending Questions

  9. Java project structure explained for newbies? - Stack Overflow

    Jun 26, 2015 · A Java package is a mechanism for organizing Java classes into namespaces. and. Java packages can be stored in compressed files called JAR files. So for package a.b.c, you could have Java classes in the a, a.b, and a.b.c packages. Generally you group classes inside the same package when they represent related functionality.

  10. generics - How to view Java compiled code - Stack Overflow

    Dec 21, 2014 · My question is, after I compiled the code using javac command, I want to see how the compiled code looks like, but I don't know how to do it. I opened the .class file using NotePad++, but I just saw gibberish. How do I view the compiled code is my question. I am new to programming in general. Thank you