Design Patterns Part II

Builder Pattern: This design takes the step by step approach when building objects. This is done by taking objects with different attributes to build different representations of the same object and the builder is independent of the objects. For code example you can click here. Decorator Pattern: This design is used to add functionality to …

Design Patterns Part I

Observer Pattern: This defines a one to many relationship between objects, such that if one object is modified, its dependent objects are to be notified automatically. For code example you can click here. Factory Pattern: Creates an object without exposing the creation logic to the client. This uses a class to handle the creation of …

SQL Must Know Questions

What are the different types of joins?  What is the difference between CHAR and VARCHAR2 datatype in SQL? Char has a fixed length, while Varchar uses variable lengths. What is ACID property in a database? ACID stands for Atomicity, Consistency, Isolation, Durability. It is used to ensure that the data transactions are processed reliably in a …

What is the connection Between JRE, JDK, and JVM?

JRE stands for java runtime environment. This is the part of the java development kit that contains a set of tools with the minimum requirement to execute a Java application. In order for a software program to execute code, it needs a runtime environment to load class files, verify access to memory and retrieve system …

What are the four principles of OOP?

When trying to remember the four principles of object oriented programming just think of APIE. A is for Abstraction: Abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead …

Java Interview Questions

Explain the difference between an interface and a abstract class? Abstract class: Is a superclass that cannot be instantiated and is used to state or define general characteristics. An object cannot be created from a Java abstract class. The abstract class is declared using the keyword abstract. Subclasses extended from an abstract class have all …

Introduce Yourself (Example Post)

This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how your blog looks. Don’t worry if you haven’t given it a name yet, or you’re feeling overwhelmed. Just click the …

Design a site like this with WordPress.com
Get started