Java Engineer Interview Questions

30,868 java engineer interview questions shared by candidates

package com.interview; public class Threading { int counter; class Mythread extends Thread{ @Override public void run(){ for(int i=0; i < 10000; i++) counter++; System.out.println("run = " + counter); } } public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub Threading a = new Threading(); Mythread t1 = a.new Mythread(); t1.start(); t1.join(); System.out.println("" + a.counter); } }
avatar

Java Programmer

Interviewed at Barclays

3.9
Jan 15, 2010

package com.interview; public class Threading { int counter; class Mythread extends Thread{ @Override public void run(){ for(int i=0; i < 10000; i++) counter++; System.out.println("run = " + counter); } } public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub Threading a = new Threading(); Mythread t1 = a.new Mythread(); t1.start(); t1.join(); System.out.println("" + a.counter); } }

There 4 rounds of interviews..two technical each of 30-45 mins..1 managerial round and last one is HR .. questions were related to core java SQL and Unix...HR told me about positive feedback and took all my docs but later on they didn't provide me the offer even after follw up of 2 months
avatar

Java Developer

Interviewed at DXC Technology

3.4
Apr 30, 2019

There 4 rounds of interviews..two technical each of 30-45 mins..1 managerial round and last one is HR .. questions were related to core java SQL and Unix...HR told me about positive feedback and took all my docs but later on they didn't provide me the offer even after follw up of 2 months

Viewing 1451 - 1460 interview questions

Glassdoor has 30,868 interview questions and reports from Java engineer interviews. Prepare for your interview. Get hired. Love your job.