posted 13 years ago
Your example code is malformed, it will not compile. You are missing a closing } for the main method. Did you mean a and b to be local variables in the main method?
When you create an object, some memory will be allocated on the heap to store the member variables and some other data for the object. Assuming that a and b are local variables inside the main method and not member variables, your class doesn't have any member variables, so the object will consist of just a few bytes with some administrative information that the JVM uses internally.
Was that what you wanted to know? If not, then please explain your question in more detail.