---
title: "Shubham (@sam007) | Hashnode"
description: "Curious by nature and Software Engineer by profession. Read the latest articles by Shubham on Hashnode."
url: "https://hashnode.com/@sam007"
---

@sam007

# Shubham

@sam007 · India · Joined December 2020

Curious by nature and Software Engineer by profession

### [Lambdas and Streams](https://techtenets.hashnode.dev/lambdas-and-streams?utm_source=hashnode&utm_medium=feed)

In Java8, some of the things that are added: lambdas, functional interface, method references -> create function objects streams -> processing sequence of data elements Item 42: Prefer lambdas to anonymous class function types: interface/abstract ...

5 min read · [techtenets.hashnode.dev](https://techtenets.hashnode.dev/lambdas-and-streams?utm_source=hashnode&utm_medium=feed)

[Jan 16, 2021](https://hashnode.com/posts/lambdas-and-streams/6002d679848f4c3b9a0ef127)

### [Enums and Annotations](https://techtenets.hashnode.dev/enums-and-annotations?utm_source=hashnode&utm_medium=feed)

Two special-purpose families of reference types: Enums and Annotations. Item 34: Use enums instead of int constants int constants public static final int APPLE\_FUJI = 0; Disadvantages: No type safety (other values can be used, even if not present in...

4 min read · [techtenets.hashnode.dev](https://techtenets.hashnode.dev/enums-and-annotations?utm_source=hashnode&utm_medium=feed)

[Jan 15, 2021](https://hashnode.com/posts/enums-and-annotations/6001a998dd5fce29feec83d0)

### [Generics](https://techtenets.hashnode.dev/generics?utm_source=hashnode&utm_medium=feed)

Generics has been present since Java 5. They help in maintaining static typing by inserting casts and give error at compile time if inconsistent. They however comes at a price and the chapter aims to assist in using them efficiently. For reference pu...

7 min read · [techtenets.hashnode.dev](https://techtenets.hashnode.dev/generics?utm_source=hashnode&utm_medium=feed)

[Jan 13, 2021](https://hashnode.com/posts/generics/5fff148fc162d710c9b14273)

### [Classes and Interfaces - Effective Java](https://techtenets.hashnode.dev/classes-and-interfaces-effective-java?utm_source=hashnode&utm_medium=feed)

Item 15: Minimize the accessibility of classes and members A well-designed component hides the API and the implementation. It communicates only via the API which is called encapsulation. Advantages of encapsulation: decouples the components faster ...

9 min read · [techtenets.hashnode.dev](https://techtenets.hashnode.dev/classes-and-interfaces-effective-java?utm_source=hashnode&utm_medium=feed)

[Jan 6, 2021](https://hashnode.com/posts/classes-and-interfaces-effective-java/5ff5e6befc8177134fbb707b)

### [Methods Common to All Objects](https://techtenets.hashnode.dev/methods-common-to-all-objects?utm_source=hashnode&utm_medium=feed)

Object is a concrete class, designed primarily for extension. This article would tell you when and how to override the methods. Item 10: Obey the general contract when overriding equals The default behaviour allows an instance to be only equal to its...

6 min read · [techtenets.hashnode.dev](https://techtenets.hashnode.dev/methods-common-to-all-objects?utm_source=hashnode&utm_medium=feed)

[Jan 3, 2021](https://hashnode.com/posts/methods-common-to-all-objects/5ff1ebab786e5b71c88b011a)
