Frage im Vorstellungsgespräch bei Tata Consultancy Services

can two beans which have different Ids , have same class , while using singleton pattern?