HCL Interview Report
- 0of 0 votes
AnswersWhy to use singleton class? What is the advantage you get by restricting single object of a class.
- mohapatrasandeep60 January 10, 2016 in India
eg.If you are using a logger class, if there are many objects of the class and you want to print that sequentially, you can achieve this with mutex. Why use singleton?
write code for thread safe singleton.| Report Duplicate | Flag | PURGE
HCL Developer Program Engineer - 0of 0 votes
Answerswrite commands for -
- mohapatrasandeep60 January 10, 2016 in India
1>list processes
2>remove 2lines from file
3>there are multiple hirarachical direcories. Change the file extension all .c files to .cpp
4>chang time stamp of a file
5> run a script at a particular time| Report Duplicate | Flag | PURGE
HCL Developer Program Engineer
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.