Senior Developer Java Interview Questions

5,296 senior developer java interview questions shared by candidates

"public class Prize { public static void main(String args[]) { int x = 111, y = 101; switch ( y) { case 1 : System.out.println(""-1-""); case 101 : System.out.println(""-101-""); case 111 : System.out.println(""-111-""); case 010 : System.out.println(""-010-""); default : System.out.println(""-"" + x & y + ""-""); } } }" "public class Demo{ public static void main(String[] arr){ Integer num1 = 100; Integer num2 = 100; Integer num3 = 500; Integer num4 = 500; if(num1==num2){ System.out.println(""num1 == num2""); } else{ System.out.println(""num1 != num2""); } if(num3 == num4){ System.out.println(""num3 == num4""); } else{ System.out.println(""num3 != num4""); } } } " Write a program to print natural number using two threads odd and even number by order
avatar

Senior Java Developer

Interviewed at Trangile Services

4.2
Mar 9, 2021

"public class Prize { public static void main(String args[]) { int x = 111, y = 101; switch ( y) { case 1 : System.out.println(""-1-""); case 101 : System.out.println(""-101-""); case 111 : System.out.println(""-111-""); case 010 : System.out.println(""-010-""); default : System.out.println(""-"" + x & y + ""-""); } } }" "public class Demo{ public static void main(String[] arr){ Integer num1 = 100; Integer num2 = 100; Integer num3 = 500; Integer num4 = 500; if(num1==num2){ System.out.println(""num1 == num2""); } else{ System.out.println(""num1 != num2""); } if(num3 == num4){ System.out.println(""num3 == num4""); } else{ System.out.println(""num3 != num4""); } } } " Write a program to print natural number using two threads odd and even number by order

1. convert given string as per requirement. abc123 need to be convert 012onetwothree 2. sort given array 3. find given number into given array 4. read file and write content into other file using multithreading 5. prove stringbuffer is better than string in terms of performance and memory 6. read XML file and convert its values into collection list.
avatar

Senior Java Developer

Interviewed at BBD

4.4
Sep 18, 2015

1. convert given string as per requirement. abc123 need to be convert 012onetwothree 2. sort given array 3. find given number into given array 4. read file and write content into other file using multithreading 5. prove stringbuffer is better than string in terms of performance and memory 6. read XML file and convert its values into collection list.

Viewing 1991 - 2000 interview questions

Glassdoor has 5,296 interview questions and reports from Senior developer java interviews. Prepare for your interview. Get hired. Love your job.