Java Interview Questions

Search for a command to run...

HTTP is one of the many concepts a Java Engineer should know. Since Java is mostly suited for server-side operations, understanding the concept behind HTTP will be valuable during your role as a Java Engineer. What is HTTP? HTTP stands for Hyper Text...
AI has transformed how I work as a technical writer. Large tech companies are developing and sharpening these tools, but some of them are better than others depending on what you want to accomplish. T

I've been writing professionally for 3+ years, and on this personal blog for 5+ years. Throughout this time, I've built a large network made of developers, other technical writers, solutions engineers

I’ve been writing online for almost five years, with a professional focus on technical writing for over two years. If you struggle to create technical content that is easy to digest, this article is for you. Where do I start? If you don’t know where ...

LinkedIn is the only social networking site purposely built to help job seekers. Over the years, LinkedIn has evolved by offering two types of experiences: Job searching Content creation This article will describe how to maximize your LinkedIn fo...

In the last 12+ months as a technical writer, I've worked on several projects highlighting three technical writing elements. This article will introduce you to: Information Architecture Docs-as-code Content strategy Information Architecture (IA)...

Hello reader! The purpose of this article is to share some common java interview questions that I was asked in the past when going through job interviews with top financial firms. I hope that you'll find this useful.
What is a class?
What is an object?
Object VS class
Method overloading.
Method overriding.
Access modifiers (private, public, protected, default).
The difference between method overloading and method overriding.
Object-Oriented Programming: inheritance, polymorphism, abstraction and encapsulation.
Aggregation and association.
Dynamic binding (linked to abstraction).
Static keyword.
Final keyword.
Strings: discuss why they're immutable and what happens in the memory (stack and heap). The string is a class.
Stringbuilder VS Stringbuffer.
Interface: why it's used.
Can we have multiple inheritance? If not, why? What can we do instead?
Difference between abstract class and interface.
Memory management: garbage collection, the types of garbage collectors.
How does a hashmap work internally?
Collections Framework.
Exception handling: throw, throws keywords, what is a runtime exception.
Runtime Type Checking.
Difference between the keywords final, finally, finalize.
try...catch block.
Finally block.
Exception propagation.
Multithreading: what is a thread, how to create a thread (Runnable interface OR Thread class).
Thread safety.
Synchronize.
Difference between a set and a list.
Java 11 features.
JDK, JRE, JVM.
SOLID Principles.
Test-Driven Development.
Git commands.
What does "unboxing" mean?
Is Java "pass-by-value" or "pass-by-reference"?
How do you return multiple values in Java?
What does "covariance" mean?
Good luck! 🍀🍀🍀