Change this to your question / problem / query
public class sb1 {
//1.all data fields must be private
//2.there can't be any setter methods
//3.if there is object is returned in getter method that
//that is also be immutable
private int x;//immutable
sb1(int x)
{
this.x=x;
}
int getX()
{
return this.x;
}
public static void main(String[] args) {
sb1 ss=new sb1(678456);
ss.getX();
}
}