vimal eldose george


{ City } cochin
< Country > india
* Profession * s/w engineer
User No # 37679
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 32
Users Marked my Answers as Wrong # 17
Questions / { vimal eldose george }
Questions Answers Category Views Company eMail




Answers / { vimal eldose george }

Question { TCS, 65296 }

What is singleton class?


Answer

Singleton gives only one instance.

class Single{

static int objCreated = 0;
private Single(){
}
public static Single getThis(){
if(objCreated==0)
{
return new Single();
ob=1;
}else
{
return this;
}
}

}

Is This Answer Correct ?    32 Yes 17 No