JK Tech Interview Question

static vs singleton. which is used when