JK Tech interview question

static vs singleton. which is used when