BrowserStack Interview Question

Job Descriptions, name 2 design patterns you used, sort an array of size N having unique elements from 1 to N.an array has one element repeated twice, find it. When is finally block not executed. life cycle of servlet class object. Thread.join() and thread.yield()