
Could anyone tell me how to find the size of the class given below.
public class Sample {
private int x;
private int y;
private char ch;
public static void main(String[] args) {
Sample sample = new Sample();
sample.x = 1;
sample.y = 2;
sample.ch = 'a';
}
public void display() {
System.out.println("Hi everyone");
}
}
please answer asap.
(Knapster)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.