Linked Questions

37 votes
4 answers
36k views

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 ...
MRalwasser's user avatar
  • 16.1k
20 votes
4 answers
16k views

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 ...
Popgalop's user avatar
  • 767
2 votes
2 answers
12k views

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 ...
Trash Can's user avatar
  • 6,832
1 vote
4 answers
2k views

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 ...
user997112's user avatar
  • 31.1k
47 votes
3 answers
18k views

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!
Corey Stevens's user avatar
4 votes
3 answers
3k views

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....
echox's user avatar
  • 9,880
9 votes
1 answer
6k views

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 ...
Laetan's user avatar
  • 899
0 votes
4 answers
1k views

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, ...
10 Replies's user avatar
4 votes
4 answers
152 views

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 ...
committedandroider's user avatar
0 votes
3 answers
1k views

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: ...
Nikhil's user avatar
  • 1
-2 votes
1 answer
113 views

Which has a larger bytecode size or the same in Java? if (a > b) a = b; vs if (a > b) { a = b; }
webelf000's user avatar
  • 147
0 votes
3 answers
143 views

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){...
user2396354's user avatar
2 votes
1 answer
98 views

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 ...
Rahim Dastar's user avatar
  • 1,269