Skip to content
sneppets

sneppets

  • Privacy

Linear Search

September 4, 2018December 8, 2018 Editorial StaffLeave a Comment on Linear Search

There are two search algorithms available for finding a target element within a list. One is linear search or sequential search and the other type is binary search. Linear search is very simple to implement and can be used in… Read More!

Algo, Java Algorithms, Datastructure, ds, java

Singleton pattern purpose, strategy, usage and example

August 30, 2018December 8, 2018 Editorial StaffLeave a Comment on Singleton pattern purpose, strategy, usage and example

Singleton Pattern is one of the Gangs of Four Design Patterns and comes in Creational Design Patterns that restricts the instantiation of a class and ensures only one object of the class exists in the JVM (java virtual machine) Purpose… Read More!

Java design pattern, java, singleton

Abstract Classes in Java

March 12, 2018March 17, 2019 Editorial StaffLeave a Comment on Abstract Classes in Java

An abstract class is a class that is declared abstract—it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed. Why to make a class if you can’t make objects out of it? Because no one… Read More!

Java core java, java
static import java

Static Import Statements in Java

March 11, 2018December 8, 2018 Editorial StaffLeave a Comment on Static Import Statements in Java

Static Import feature was introduced in Java 5. This feature provides a typesafe mechanism to include constants into code without having to reference the class. Although some would argue that it comes at the expense of readability. When to use… Read More!

Java core java, java

Posts navigation

Newer posts
Copyright © 2018 Sneppets. All Rights Reserved