But wouldn't class file include compiler information.. Does it reflect the true size of class
On Thu, Jun 17, 2010 at 12:57 PM, Dainis Brjuhoveckis < [email protected]> wrote: > Have you tried to create such class and compile it and then see the size of > resulting .class file? :-) > > > On Thu, Jun 17, 2010 at 7:24 PM, Shiv Shankar > <[email protected]>wrote: > >> Hi everyone, >> This look like silly questions, but I am confused and asking this >> questions. "What is size of an empty class ? ". >> We know in C/C++ its one byte. In java as there is no empty class >> (Object class inherited automatically), what will be the size of class if I >> am not providing any code in the class definition. >> -- >> With Regards, >> Shiv Shankar >> >> -- >> To post to this group, send email to >> [email protected] >> To unsubscribe from this group, send email to >> [email protected]<javaprogrammingwithpassion%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/javaprogrammingwithpassion?hl=en > > > -- > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected]<javaprogrammingwithpassion%[email protected]> > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en > -- Thanks, Pawan. While one person hesitates because he feels inferior, another is busy making mistakes and becoming superior. Henry C. Link -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
