Question d’entretien chez HCLTech

Consumer and producer problem. Write a program on executor class of concurrent package. String immutability How to create my own immutable class? Prog1: write a programme to generate the below pattern if 4x3 is given 1 2 3 4 5 6 7 8 9 10 11 12 If 2x4 then 1 2 3 4 5 6 7 8 Prog2: write a thread based program to get all even and odd elements in 2 different arrays ex array of 100 all even in a[], all odd in b[]. Prog 3: write a program to find the shortest path in a given matrix example if matrix is 4x3 1 2 3 4 5 6 7 8 9 10 11 12 O/p: 1,2,7,12 and 1,6,11,12