class User {
private static final User INSTANCE;
private User() {}
public static User getInstance() {
synchronized(User.INSTANCE) {
if (User.INSTANCE == null) {
User.INSTANCE = new User();
}
}
return User.INSTANCE;
}
public String getName() {
// return user's name
}
thank you for this useful information. Keep sharing such useful
উত্তরমুছুনinformation.
Visit:
Sarkari Naukri
sarkari exam
result
govt
jobs in india