Java Interview PrepNotes


Experience: 5-9 years
Main topics to look upon:
Basics - JRE, JDK, JVM, Memory management, Class loaders, Object Class, String, String buffer, String builders, Mutable, Immutable, OOPS, Abstraction vs Interface, Exception handling(types), Serializations.
Link: https://www.digitalocean.com/community/tutorials/core-java-interview-questions-and-answers
Basic Problems to practise.
Collections : different type of collections and its implementations(imp: LinkedList, ArrayList, HashMap)
Know how of new Java versions and the related main features(Java 8, Java 11, Java 17).
Practise Functional programming, SAM Interfaces, Streams etc
Concurrency: Traditional threading, executors, Future, Promise, Publisher, Consumers, Runnable vs Callable, deadlock, synchronization. Familiarize yourself with code samples and examples of these respective classes.
Design Patterns at least Singleton, factory design pattern, go through the samples of the respective classes.
Connections, Protocols, Security layers and terminologies(Socket, Session, handshake, HTTP, HTTPs, TCP, FTP, SFTP, FTPS, TTL, SSH, SSL) and the respective implementations. Familiarize yourself with code samples and examples of these respective classes.
Spring basics : Principles(DI, IoC ,Components, Beans, type of configurations) , Scope of the beans,Different annotations(@Autowired, @Transactional etc), Exception Handling
SpringBoot: Spring vs SpringBoot, Starter, Actuator, profiles, application.properties, application.yml, different REST annotations.
ORM framework: Hibernate(Mapping, Annotations, Methods). Familiarize yourself with code samples and examples of these respective classes.
REST API: Definition, uses, SOAP vs REST, HTTP methods, status codes, Authentication vs Authorization, Headers, Versioning, Caching, Postman testing and related annotations.
Messaging Queues: Apache Kafka(queuing, event generation, topics, broker, publishers, consumers) go through the samples of the respective classes.
Microservices: Definition, Monolithic vs Microservice, Principles of Microservices, modes of communications between different services, Traffic tracking, health check, Monitoring, Splunking etc
Hosting, Containerization and Orchestration(Docker and Kubernetes basics)
Unit testing: Junits, Mockito, different classes and the method usages.
Git Commands
Note:
Based on my frequent interview experiences, the above points cover the most frequently asked questions. There may be minor variations, but these are the common FAQs in most companies.
The above pointers do not include SQL and database-related topics.
Subscribe to my newsletter
Read articles from Prafull Kulkarni directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Prafull Kulkarni
Prafull Kulkarni
Enthusiastic learner, dedicated to growth and sharing. Striving to create a more beautiful world together.