What is constructor in java?
Java Engineer Interview Questions
30,828 java engineer interview questions shared by candidates
How many bytes does a String uses in Java?
Most difficult question to me was "can you relocate to different place ?"
They asked some good questions on Multithreading, synchronized keyword implementation, blocking queue , Collections and their hierarchy and up casting and down casting and significance of wrapper classes. Gave me to write a program to run three threads and print sequence 123123123. After that they asked about projects in current company that's it.
mostly core java, spring, hibernate and databases
Questions related to microservices and previous difficulties faced
what is polymorphism ?, what is a thread ?, thread life cycle ? what is demon thread ? what is the difference between demon thread and user thread ? what is memory leak ? how to resolve it ? what is jvm ? what is heap memory ? how many types of memories are there in jvm ? what is collection ? write a program to iterate a HashMap ? can we write a try catch block in finally block ? what is throw ? what is the difference between throws and throw ?
How will you swap two numbers without using a temp
I was asked to write a basic exception script and also how to create tables in SQL.
what is oop and its fundamentals? what is encapsulation, abstraction, etc
Viewing 3301 - 3310 interview questions