The document contains 6 Java programming questions and solutions: 1. A program to find unique and duplicate items in an array. 2. A Product class with properties and methods to sort objects. 3. A program to merge contents of two text files into a third file. 4. A program to count the occurrences of specific words in a file. 5. A program to read a file, add contents to an ArrayList, and write to a new file. 6. A program to print consecutive characters in a string and their frequency.