Linked Questions
13 questions linked to/from Is it possible to view bytecode of Class file?
37 votes
4 answers
36k views
Is there a java classfile / bytecode editor to edit instructions? [closed]
Is there a utility (or eclipse plugin) for editing java class files? I'd like to manipulate the bytecode of a java class file without recompiling it nor having a complete buildpath. E.g. to rename ...
20 votes
4 answers
16k views
Is it possible to view a Java class files bytecode [duplicate]
I am working on a bytecode manipulation/generation in Java and I was just wondering if there is an easy way I could check the bytecode. I do not want to decompile the file, I would like to actually ...
2 votes
2 answers
12k views
How to view Java compiled code [duplicate]
I have this ClassParent class class ClassParent<T> { public void set(T t) { //setter code } } Then I have this ClassChild extending the ClassParent class ClassChild ...
1 vote
4 answers
2k views
Checking Java "assembly"? [duplicate]
Possible Duplicate: Is it possible to view bytecode of Class file? I wanted to write some Java in eclipse, compile and then look at the resultant "assembly language" to see which code compiles to ...
47 votes
3 answers
18k views
Programming in Java bytecode [closed]
I'm looking to write a short program (maybe a Hello World) in Java bytecode. I just want to write the bytecode using my text editor and run it. How would I do this? Got an example? Thanks!
4 votes
3 answers
3k views
Editing a .class file directly, playing around with opcodes
today I just tried to play a little bit around with the opcodes in compiled java class file. After inserting iinc 1,1 the java virtual machine responds with: Exception in thread "main" java.lang....
9 votes
1 answer
6k views
Hide a library source code
I am developing an android library and I want to hide it's code. I am using other library, and for some of them, when trying to access their code with Android Studio, you only get the list of methods ...
0 votes
4 answers
1k views
Do Ternary and If/Else compile to the same thing, why?
Do compilers compile a simple ternary statement to the same thing that they would compile a simple if else statement? Also, why would a compiler be designed to compile them differently? For example, ...
4 votes
4 answers
152 views
How many Strings are created in memory?
Say I have this String expression String hi = "Tom" + "Brady" + "Goat" I know that the String pool "allows a runtime to save memory by preserving immutable strings in a pool" String Pool How many ...
0 votes
3 answers
1k views
Can two different objects like o1 and 02 of same class with different thead like t1 and t2 can they execute synchronized method at the same time
Assuming I have two different objects of same class, do they will able to execute the same synchronized method at the same time because the lock is on the object ant not on the method. Example: ...
-2 votes
1 answer
113 views
Bytecode size of with brackets vs without brackets in Java [closed]
Which has a larger bytecode size or the same in Java? if (a > b) a = b; vs if (a > b) { a = b; }
0 votes
3 answers
143 views
how does java code compile
I'm just asking if different ways of writing a code is compiled differently or the same. So if i have something like this: ("object" being the class name) object o = class.getMethod(); if(o != null){...
2 votes
1 answer
98 views
Interesting behavior in Java [duplicate]
I run this code and get run time for both loop blocks. the interesting thing is that when I set the upper bound for j 2 the run time for each block is ~3500ms but when I run it with upper bound for j ...