---
title: "#javaforbeginners articles | Hashnode"
description: "Explore 20 articles tagged #javaforbeginners on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/javaforbeginners"
---

Tag

# #javaforbeginners

20 posts · 0 followers

[Preethika S](https://hashnode.com/@PreethiNaveen) · [Jan 28](https://hashnode.com/posts/variables-and-datatyoes/69797540a2442d262dacf385)

### [Variables and datatypes in java](https://codewithpreethi.hashnode.dev/variables-and-datatyoes?utm_source=hashnode&utm_medium=feed)

Learn what variables and data types are in Java, their types, and how to use them with simple examples. This beginner-friendly guide explains primitive and

2 min read · [codewithpreethi.hashnode.dev](https://codewithpreethi.hashnode.dev/variables-and-datatyoes?utm_source=hashnode&utm_medium=feed)

[Rayees Ali](https://hashnode.com/@ali1510) · [Dec 10, 2025](https://hashnode.com/posts/var-args/6939c70e2803769f4adde389)

### [Var - Args](https://javaforinterview.hashnode.dev/var-args?utm_source=hashnode&utm_medium=feed)

To understand the var args concept , let us solve the following problem Write a class that has a method called sum( ) which can add and return the sum of all the integers passed to it as argument . The method should be able to accept 2 3 or 4 argum...

4 min read · [javaforinterview.hashnode.dev](https://javaforinterview.hashnode.dev/var-args?utm_source=hashnode&utm_medium=feed)

[SHUBHAM YEOLE](https://hashnode.com/@shubhyeole) · [Sep 4, 2025](https://hashnode.com/posts/understanding-optional-in-java-a-better-way-to-handle-nulls/68b950c70a87f051351e380b)

### [🚀 Understanding Optional in Java — A Better Way to Handle Nulls](https://shubhamyeole.hashnode.dev/understanding-optional-in-java-a-better-way-to-handle-nulls?utm_source=hashnode&utm_medium=feed)

One of the most frustrating runtime errors for Java developers is the NullPointerException (NPE).It often occurs when we try to access or call a method on an object that turns out to be null. String name = null; System.out.println(name.length()); // ...

3 min read · [shubhamyeole.hashnode.dev](https://shubhamyeole.hashnode.dev/understanding-optional-in-java-a-better-way-to-handle-nulls?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Aug 10, 2025](https://hashnode.com/posts/java-programming-day-13/6898cd5e362911ed75c74b8c)

### [Java Programming Day 13](https://java1.hashnode.dev/java-programming-day-13?utm_source=hashnode&utm_medium=feed)

Practice key Java concepts with interactive tasks: input handling, arithmetic operations, random guessing game, and formatted receipt printing. Perfect for

6 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-13?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Aug 7, 2025](https://hashnode.com/posts/java-programming-day-12/6894d60d4927854b58ba8e5b)

### [Java Programming Day 12](https://java1.hashnode.dev/java-programming-day-12?utm_source=hashnode&utm_medium=feed)

Learn Java abstraction and interfaces with clear examples, modified code, and detailed explanations. Perfect for beginners to master OOP concepts in Java.

4 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-12?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/java-programming-day-12/6894d60d4927854b58ba8e5b)

[Himanshi](https://hashnode.com/@Himanshicom) · [Aug 5, 2025](https://hashnode.com/posts/java-programming-day-11/689229e6d19baeb5948bc528)

### [Java Programming Day 11](https://java1.hashnode.dev/java-programming-day-11?utm_source=hashnode&utm_medium=feed)

Learn Java OOP concepts like super, .toString() method, and method overriding with real examples, modified code, and clear explanations.

5 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-11?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Aug 3, 2025](https://hashnode.com/posts/java-programming-day-10/688f9a6469dcb4fd33207fc0)

### [Java Programming Day 10](https://java1.hashnode.dev/java-programming-day-10?utm_source=hashnode&utm_medium=feed)

Learn Java OOP with arrays of objects, static methods, and inheritance. Includes examples, code, and key takeaways for beginners.

5 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-10?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Aug 1, 2025](https://hashnode.com/posts/java-programming-day-9/688ce2eff9ef349be31f4f72)

### [Java Programming Day 9](https://java1.hashnode.dev/java-programming-day-9?utm_source=hashnode&utm_medium=feed)

Understand Java constructors and constructor overloading with real-life examples, detailed code, and beginner-friendly explanations. Perfect for Java Day 9

5 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-9?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Jul 30, 2025](https://hashnode.com/posts/java-programming-day-8/688a61478de8cb788c0fabed)

### [Java Programming Day 8](https://java1.hashnode.dev/java-programming-day-8?utm_source=hashnode&utm_medium=feed)

Explore Java OOP with a slot machine game, custom Car class, and class inheritance. Hands-on practice with real examples and clear explanations.

5 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-8?utm_source=hashnode&utm_medium=feed)

[Himanshi](https://hashnode.com/@Himanshicom) · [Jul 28, 2025](https://hashnode.com/posts/java-programming-day-7/6887895d5eefc1a160251554)

### [Java Programming Day 7](https://java1.hashnode.dev/java-programming-day-7?utm_source=hashnode&utm_medium=feed)

Learn 2D arrays, matrices, user input, and build fun Java programs like a quiz and Rock-Paper-Scissors game with detailed examples.

7 min read · [java1.hashnode.dev](https://java1.hashnode.dev/java-programming-day-7?utm_source=hashnode&utm_medium=feed)
