Core Java Interview Questions

92 core java interview questions shared by candidates

I will put down as many questions as i remember (i) Examples of polymorphism and abstract classes (ii) How to get the current thread ? (iii) Define a sequence of operations of on a thread that is alive and needs to be preempted? (iv) What is the difference between a task and a thread? (v) Examples of function overriding and how it is used? (vi) Usage of Object.equals() (vii) How do you know that a thread is alive? (viii) How would threads communicate with each other?
avatar

Core Java Developer

Interviewed at ITC

3.8
Mar 22, 2016

I will put down as many questions as i remember (i) Examples of polymorphism and abstract classes (ii) How to get the current thread ? (iii) Define a sequence of operations of on a thread that is alive and needs to be preempted? (iv) What is the difference between a task and a thread? (v) Examples of function overriding and how it is used? (vi) Usage of Object.equals() (vii) How do you know that a thread is alive? (viii) How would threads communicate with each other?

Technical question were quite basic now that I think of it. One question asking me to use one single SQL query to retrieve information from two related tables given only one key information was something I did not prepared for since I only have very basic knowledge of it and have not used it for a while. The technical interviewer kindly informed me that I could use join table technique.
avatar

CIB-Core Java Developer

Interviewed at JPMorganChase

3.9
May 17, 2014

Technical question were quite basic now that I think of it. One question asking me to use one single SQL query to retrieve information from two related tables given only one key information was something I did not prepared for since I only have very basic knowledge of it and have not used it for a while. The technical interviewer kindly informed me that I could use join table technique.

what to do if I want to restrict incoming & outgoing of a user? I said disable his services from HLR. what to do if want to restrict only outgoing of a user? I Said for this also will have to disable his services from HLR. what is SVN, how to use that? I answered. if multiple rows are returned from a procedure what will happen? could not. select * from employee where ROWNUM=2; what will be output? could not. Thanks for your time.
avatar

Core Java Developer

Interviewed at Ericsson

4
Dec 20, 2015

what to do if I want to restrict incoming & outgoing of a user? I said disable his services from HLR. what to do if want to restrict only outgoing of a user? I Said for this also will have to disable his services from HLR. what is SVN, how to use that? I answered. if multiple rows are returned from a procedure what will happen? could not. select * from employee where ROWNUM=2; what will be output? could not. Thanks for your time.

Viewing 11 - 20 interview questions

Glassdoor has 92 interview questions and reports from Core java interviews. Prepare for your interview. Get hired. Love your job.