$1 object reference

Why jvm make a $1 object?

I see the object in wtk objects in wtk memory monitor.

When I call a constructor of another object jvm make a $1copy of object.

I explain by example

ClassA

{

publicvoid methodA

{

..

new ClassB();//in this instruction jvm make in memory classA$1

..

}

}

Class B

{

publicbyte methodB()..

}

Why?

[783 byte] By [PeppeMEa] at [2007-11-27 8:50:55]
# 1
It is decree of nature :)All internal and anonymous classes are being compiled to $NN representation of Java byte code.
jDeea at 2007-7-12 21:03:11 > top of Java-index,Java Mobility Forums,Java ME Technologies...