Posts

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...

JDK Download & Install Process in Bangla - জাভা শিখুন বাংলায়!

Image
JDK Download Install Process Explained (2025 Guide) JDK কি এবং কেন দরকার?:  **JDK হল একটি software package যেখানে জাভা program লেখা, compile এবং run করার জন্যে প্রয়োজনীয় সব কিছু থাকে। জাভা program লিখতে হলে অবশ্যই JDK install থাকতে হবে। JDK Download:   - যেকোন browser open করে google এ যাব।  - JDK Download লিখে google search এ দিব  - এই link এ যাব https://www.oracle.com/apac/java/technologies/downloads/  - JDK version select / বাছাই করব।  - Windows select / বাছাই করব। (আমি এখানে windows operating system select করেছি)  - তারপর x64 Installer এই option টা select করব। কারণ এই টা হল .exe ফাইল। আমরা এই .exe ফাইল টা Download দিব।  - **উল্লেখ্য আমি এখানে java version 21 দেখাচ্ছি। JDK Install:   - JDK Install দেয়ার জন্যে computer এর download folder এ যাব অথবা jdk-21_windows-x64_bin.exe ফাইল যেখানে download হয়েছে সেই ফোল্ডার এ যাব।   - সেই jdk-21_windows-x64_bin.exe ফাইল এ double click করব। অথবা mouse right click ক...

Java Introduction in Bengali (জাভা পরিচিতি) JVM, JRE & JDK Explained

Image
Introduction to Java – JVM, JRE & JDK Explained (2025 Guide) Introduction to Java (Java পরিচিতি):  Java হলো একটি High Level এবং Object-Oriented Programming (OOP) language । ১৯৯৫ সালে Sun Microsystems জাভা তৈরী করেছিল। বর্তমানে জাভা'র মালিকানা Oracle Corporation এর অধীনে ।  জাভার স্লোগান হলো:- "Write Once, Run Anywhere" অর্থাৎ java code একবার লিখলে তা যেকোনো platform এ (Windows, MacOS, Linux) চালানো যায়। যদি সেই platform এ java environment install থাকে। Java Features / বৈশিষ্ট্যসমূহ:  - Platform Independent  - Object-Oriented  - Secure & Robust  - Multithreaded  - High Performance (JIT Compiler এর কারণে)  - Distributed Programming Java দিয়ে কি কি তৈরী করা যায়:-  - Desktop Application,  - Web Application (Spring, JSP, Servlet),  - Mobile Application (Android),  - Big Data Technologies (Hadoop, Spark),  - Cloud & Distributed Systems,...

এনক্যাপসুলেশন (Encapsulation) Object-Oriented Programming

- Encapsulation হলো Object-Oriented Programming এর একটা গুরুত্বপূর্ণ concept। এটার মাধ্যমে class-এর data গুলোকে বাইরের access থেকে লুকানো হয়। যেমন – variable গুলোকে private রাখা হয়। তারপর সেই data access করার জন্য ব্যবহার করা হয় Getter আর Setter method। এর ফলে data হয় secure, code হয় easy to maintain, আর system পায় flexibility।   public class Employee {    private String name;    public String getName() {     return name;   }    public void setName(String name) {     this.name = name;   }  }   public class EmployeeMain {    public static void main(String[] args) {     Employee employee = new Employee();     employee.setName("Abdullah");     System.out.println("Name: "+ employee.getName());   }  } output: Abdullah