Posts

Showing posts from October, 2025

Literals in Java Explained in Bangla | Learn Java Step by Step | Core Java

Image
Literals in Java Explained in Bangla | Integer, Float, Char, String, Boolean & Null | Java Tutorial বাংলা Literals in Java Explained in Bangla | Integer, Float, Char, String, Boolean & Null Literal হলো Java প্রোগ্রামে ব্যবহৃত একটি স্থির মান (Fixed Value) - যা সরাসরি কোডে লিখি বা কোনো variable এ assign করি। অর্থাৎ, Literal মানে এমন একটি constant value যা runtime-এ পরিবর্তিত হয় না। int a = 10; // 10 is a literal char ch = 'A'; // 'A' is a literal 🔹 এখানে 10 এবং 'A' — দুটোই literal, কারণ এগুলো fixed মান যা সরাসরি কোডে লেখা হয়েছে। 🔢 Types of Literals in Java Java-তে মোট ৬ ধরনের Literal আছে: Integer Literals Floating-Point Literals Character Literals String Literals Boolean Literals Null Literal 1️⃣ Integer Literals Integer Literal হলো পূর্ণসংখ্যা — যেখানে কোনো fraction থাকে না। int a = 10; // Decimal (base 10) int b = 010; // Octal (base 8) int c ...

Java Identifiers & Naming Conventions Explained in Bangla | Learn Java Step by Step | Core Java

Image
Java Identifiers & Naming Conventions in Bangla | Learn Java Step by Step Java Identifiers & Naming Conventions (Bangla Explanation) Author: Obydul Islam | Category: Core Java Tutorial (Bangla) আজকের টপিক Java Identifiers & Naming Conventions — Java শেখার অন্যতম বেসিক কিন্তু গুরুত্বপূর্ণ অংশ। Identifiers হলো সেই নামগুলো যেগুলো আমরা Java প্রোগ্রামে variable, method, class, object বা package হিসেবে ব্যবহার করি। 🔹 What is an Identifier in Java? Identifier মানে হচ্ছে যেকোনো প্রোগ্রাম element-এর নাম। যেমন — variable name, class name, method name, object name ইত্যাদি। int age = 20; String name = "Abdullah"; class Student { void display() { } } উপরের example-এ age , name এবং Student সবই identifiers। 🔹 Where Do We Use Identifiers? Variable name দিতে Method বা Function name দিতে Class ও Object নাম দিতে Interface ও Package...

Keywords in Java (Reserved Words) Explained with Examples – Core Java Tutorial

Image
Keywords in Java (Reserved Words) Explained with Examples | Core Java Tutorial Keywords in Java (Reserved Words) Explained with Examples Learn Java — a complete guide to understanding Java keywords , their importance, rules, and usage with real examples. What are Keywords in Java? In Java, keywords are predefined, reserved words that have a special meaning to the Java compiler. These words are part of the Java syntax and cannot be used as identifiers (like variable or class names). int class = 10; // ❌ Invalid: 'class' is a keyword int number = 10; // ✅ Valid identifier For example, class , if , for , and return are Java keywords that define how the code should behave. Why Java Keywords Are Reserved Java keywords are reserved to maintain consistency in the language structure. Each keyword has a predefined role, and using them for variable or method names would create confusion for the compiler. if – used for conditional statements class...