please tell me how much space will be allocated to this method...???Code:class arithmatic
{
int x,y,z;
int add (int x,int y)
{
return(x+y);
}
}
Printable View
please tell me how much space will be allocated to this method...???Code:class arithmatic
{
int x,y,z;
int add (int x,int y)
{
return(x+y);
}
}
I fixed your font size and added code tags ... read the specification of the JVM for its programming model (instruction set). Your method and class take up only a few bytes. Also read the manual for the javap utility (it can disassemble a class file).
kind regards,
Jos
it doesn't seem to help me at all.
i don't find any useful information about my question till now.
i have the installed sdk 5 in my system. please tell me how much space will be allocated???:=(::(whew):