-
Java Object Lifecycle
Creation: Reassigning References: Garbage Collection: 3. Lifecycle Explanation Key points to remember:
-
Java Certification Guide
This series will provide for mastering Java concepts for the Oracle Certified Professional (Java 21) exam.
-
Declaring and Instantiating Java Objects
In Java, an object is an instance of a class. To create an object, you need to: Nested Classes Java allows you to define classes within other classes. These are called nested classes.…
-
Serializing/Deserializing OffsetDateTime with Jackson
Serialization and deserialization of `OffsetDateTime` types in Java with Jackson involves converting an `OffsetDateTime` object to a JSON string and vice versa. Jackson provides built-in support for Java 8 date and time API,…
-
Jackson for JSON marshalling/unmarshalling
What is Jackson? Jackson is a high-performance JSON processor for Java, widely recognized for its ease of use, efficiency, and extensive features. It provides a suite of tools for parsing and generating JSON,…
-
Understanding the Spring bean lifecycle
In the Spring Framework, the lifecycle of a Spring bean is orchestrated by the Inversion of Control (IoC) container. This lifecycle is important to understand for any Java developer working with Spring, as…
-
Avoid NullPointerExceptions with Optional
Optionals are commonly used to prevent null references and NullPointerExceptions in Java code. An Optional is a container object which may or may not have a value. To verify if a value exists,…
-
RDMS interaction with Hibernate
Hibernate Object Relational Mapping (ORM) is an open source framework that facilitates Java program access and data persistence to a relational database management system. Hibernate is an implementation of JPA and can either…
-
Object-oriented programming concepts in Java
Inheritance in Java Inheritance is a way of defining relationships between classes and supports easier debugging and maintenance. A class can inherit and extend functionality from a single direct superclass. The extends keyword…
-
Structural Software Design Patterns
Structural design patterns are a way of structuring code to make it more maintainable and flexible by re-using solutions to common problems. The idea stemmed from the book “Design Patterns: Elements of Reusable…