Java Lead Interview Questions

18,808 java lead interview questions shared by candidates

1. find the pallindrome of an integer. 2. You have an array of integers, you need to make all zeros of input array to right side. 3. find the second highest number in the array. 4. You have an string, you have to print the 3 occurence and the '@' and again next 3 occurence and '@' let string be 123456789 output : 123@456@789@
avatar

Java Developer

Interviewed at InputZero

3.7
Jul 19, 2019

1. find the pallindrome of an integer. 2. You have an array of integers, you need to make all zeros of input array to right side. 3. find the second highest number in the array. 4. You have an string, you have to print the 3 occurence and the '@' and again next 3 occurence and '@' let string be 123456789 output : 123@456@789@

What is the purpose of a default constructor? class Student3{ int id; String name; void display(){System.out.println(id+" "+name);} public static void main(String args[]){ Student3 s1=new Student3(); Student3 s2=new Student3(); s1.display(); s2.display(); } }
avatar

Java Software Developer

Interviewed at InputZero

3.7
Nov 4, 2022

What is the purpose of a default constructor? class Student3{ int id; String name; void display(){System.out.println(id+" "+name);} public static void main(String args[]){ Student3 s1=new Student3(); Student3 s2=new Student3(); s1.display(); s2.display(); } }

Viewing 5721 - 5730 interview questions

Glassdoor has 18,808 interview questions and reports from Java lead interviews. Prepare for your interview. Get hired. Love your job.