Descriptive Questions: JAVA
Mail word file of Answer Sheet at : [Link]@[Link]
Timing : 12:00 PM to 1:00 PM
Send Answer Sheet Positively by 1:10 PM
Each Question carrying 10 marks
Note: After 1:10 PM no mail will be considered.
Ques1: Write a program to implement deadlock situation using
threads.
Ques2: In a 1-D array find out the middle index where sum of both
ends is equal?
Ques3: I have an Array of 10,000 unsorted elements with duplicates
,For example : Array a = [1,2,3,4,5,5,6,7,8,9,1,2,3.......upto 10,000
elements]
How will you find duplicates and list the duplicates in case there is
an Array of 10,000 unsorted elements with duplicates.
Ques4: Enter two strings and check whether entered string are
anagram or not?
Ques5: Write a program to represent a singleton class in java?