0% found this document useful (0 votes)
43 views1 page

Descriptive Questions for JAVA Exam

This document provides 5 descriptive questions for a Java assessment that must be completed by emailing the answer sheet by 1:10 PM. It instructs the candidate to write programs to demonstrate a deadlock situation using threads, find the middle index of an array where the sums of the ends are equal, find and list duplicate elements in an unsorted 10,000 element array, check if two strings are anagrams, and represent a singleton class in Java. The questions are worth 10 marks each and no submissions will be accepted after the 1:10 PM deadline.

Uploaded by

Manav Budhia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Descriptive Questions for JAVA Exam

This document provides 5 descriptive questions for a Java assessment that must be completed by emailing the answer sheet by 1:10 PM. It instructs the candidate to write programs to demonstrate a deadlock situation using threads, find the middle index of an array where the sums of the ends are equal, find and list duplicate elements in an unsorted 10,000 element array, check if two strings are anagrams, and represent a singleton class in Java. The questions are worth 10 marks each and no submissions will be accepted after the 1:10 PM deadline.

Uploaded by

Manav Budhia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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?

You might also like