---
title: "Discussion on \"Builder pattern in Java\" | Hashnode"
description: "Discussion on \"Builder pattern in Java\". public class Employee {\n\n    private final String firstName;\n    private final String lastName;\n\n    // private constructor, only Builder can call this\n    private Employee(Builder builder) {\n        this.firstName = builder.firstName;\n        this.l..."
url: "https://hashnode.com/posts/builder-pattern-in-java/696349e9ea88420f189c68a3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Builder pattern in Java](https://cloudqa.hashnode.dev/builder-pattern-in-java?utm_source=hashnode&utm_medium=feed)

public class Employee { private final String firstName; private final String lastName; // private constructor, only Builder can call this private Employee(Builder builder) { this.firstName = builder.firstName; this.l...

Jan 11 · 1 min read · cloudqa.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#builder-pattern](https://hashnode.com/tag/builder-pattern)

## Written by

[Siddartha](https://hashnode.com/@cloudqa)

@cloudqa

  
[View profile](https://hashnode.com/@cloudqa)

Learn.. perform.. learn.. perform..

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
