I am writing a plugin of another large java program .
I want to modify some byte code of some java method of the java program during runtime, so that I can intercept
Yes, you can, but the process would be a bit tricky, as you would operate directly with memory. For this purpose, you'd look at unofficial documentation on sun.misc package and its Unsafe class.