Java - Does null variable require space in memory
- by Yatendra Goel
class CheckStore {
private String displayText;
private boolean state;
private String meaningfulText;
private URL url;
public CheckStore(String text, boolean state) {
this.displayText = text;
this.state = state;
}
:
:
}
As I am initializing only two variables (displayText and state) in the…