Popular Topics to Consider for a Java Interview
There are a few topic areas to focus on when preparing for a Java interview and you should
brush up on the following areas:
Concepts from core Java:
OOPS concepts (Data Abstraction, Encapsulation, Inheritance, Polymorphism)
Basic Java constructs like loops and data types
String handling
Collection framework
Multithreading
Exception handling
Generics
Synchronisation
Serialisation & De-serialisation
Concurrent collection
Advanced Java:
JDBC (Java Database Connectivity)
Servlet
JSP
Popular Frameworks:
Spring (MVC, Core, JDBC, ORM, AOP)
Hibernate ORM framework
Struts
JSF
Web Services (SOAP & REST)
Other:
Design patterns and design questions related to your projects.
With Java being around as long as it has, there are some reliable and credible books
available to help prepare for Java interviews. A recommended book is Java Programming
Interview Exposed by Noel Markham.
As a Java developer, it is worth reading this book to take you through some of the most
important topics for Java interview, even if you aren’t specifically interviewing.
Java Certified Associate Certification Important Topics:
Java Basics
Create executable Java applications with a main method; run a Java program from
the command line; including console output.
Compare and contrast the features and components of Java such as: platform
independence, object orientation, encapsulation, etc.
Define the scope of variables
Import other Java packages to make them accessible in your code
Define the structure of a Java class
Working With Java Data Types
Differentiate between object reference variables and primitive variables
Know how to read or write to object fields
Declare and initialize variables (including casting of primitive data types)
Explain an Object's Lifecycle (creation, dereference by reassignment and garbage
collection)
Develop code that uses wrapper classes such as Boolean, Double, and Integer.
Using Operators and Decision Constructs
Test equality between Strings and other objects using == and equals ()
Create if and if/else and ternary constructs
Use a switch statement
Use Java operators; including parentheses to override operator precedence
Creating and Using Arrays
Declare, instantiate, initialize and use multi-dimensional array
Declare, instantiate, initialize and use a one-dimensional array
Using Loop Construct
Compare loop constructs
Use break and continue
Create and use for loops including the enhanced for loop
Create and use do/while loops
Create and use while loops
Working with Methods and Encapsulation
Create and overload constructors; including impact on default constructors
Determine the effect upon object references and primitive values when they are
passed into methods that change the values
Create methods with arguments and return values; including overloaded methods
Apply the static keyword to methods and fields
Apply encapsulation principles to a class
Apply access modifiers
Working with Inheritance
Describe inheritance and its benefits
Use super and this to access objects and constructors
Determine when casting is necessary
Develop code that demonstrates the use of polymorphism; including overriding and
object type versus reference type
Use abstract classes and interfaces
Handling Exceptions
Create a try-catch block and determine how exceptions alter normal program flow
Recognize common exception classes (such as NullPointerException,
ArithmeticException, ArrayIndexOutOfBoundsException, ClassCastException)
Describe the advantages of Exception handling
Create and invoke a method that throws an exception
Differentiate among checked exceptions, unchecked exceptions, and Errors
Working with Selected classes from the Java API
Create and manipulate calendar data using classes from java.time.LocalDateTime,
java.time.LocalDate, java.time.LocalTime, java.time.format.DateTimeFormatter,
java.time.Period
Manipulate data using the StringBuilder class and its methods
Creating and manipulating Strings
Declare and use an ArrayList of a given type
Write a simple Lambda expression that consumes a Lambda Predicate expression
https://education.oracle.com/products/courP_8596