EPAM Systems interview question

Got questions regarding spring and most common annotations used in spring. How can we implement singleton design in java (code)