Sitemap

Java Platform Architecture in short

JDK, JRE, JVM

Press enter or click to view image in full size
Java platform

JDK(Java Development Kit)

JDK হলো সম্পূর্ণ প্যাকেজ(tools & libraries)যেটা দিয়ে তুমি —

  • Java প্রোগ্রাম লিখতে পারো
  • কম্পাইল করতে পারো
  • রান করতে পারো

JDK এর ভেতরে কী থাকে?

  • JRE
  • javac(compiler)
  • jar
  • javadoc
  • debugger
  • development tools

তুমি যদি Java Developer হও , অবশ্যই JDK ইনস্টল লাগবে।

Press enter or click to view image in full size
Java compilation phase

javac(java compiler) এটা .java ফাইলকে .class ফাইলে রূপান্তর করে।

Get Mayesha Mariza’s stories in your inbox

Join Medium for free to get updates from this writer.

hello.java → javac hello.java → hello.class

hello.java file

Then compile the hello.java file using -> javac hello.java

Press enter or click to view image in full size

After compilation phase you will see this type of byte code which is actually hello.class.

Press enter or click to view image in full size
byte code (hello.class)

Java কোড সরাসরি চলে না, আগে bytecode (.class) বানাতে হয়। which handles JDK.

JRE(Java Runtime Environment)

JRE হলো এমন একটা প্যাকেজ যেটা দিয়ে শুধু Java প্রোগ্রাম চালানো যায়, কিন্তু বানানো যায় না।

JRE এর ভেতরে কী থাকে?

  • JVM
  • Core libraries(java.lang, java.util, java.io)
  • Runtime Files

তুমি যদি শুধু Java সফটওয়্যার ব্যবহার করো (যেমন ব্যাংকিং অ্যাপ), তখন শুধু JRE থাকলেই যথেষ্ট।

JVM(Java Virtual Machine)

JVM হলো সেই “মেশিন” যেটা .class ফাইল (bytecode) কে আসল মেশিন ভাষায় রূপান্তর করে চালায়।

Press enter or click to view image in full size
Press enter or click to view image in full size

after compilation phase if you run -> java hello , then you will see Hello world.

JVM এর কাজগুলো

  • Byte code execution (.class file chalai)
  • Memory management
  • Garbage collection

Summary

  • JVM → কোড চালানোর মেশিন
  • JRE → কোড চালানোর পরিবেশ
  • JDK → কোড বানানো + চালানোর সম্পূর্ণ প্যাকেজ

Developer → JDK দরকার
User → শুধু JRE থাকলেই চলে

A Computer Science student with expertise in Flutter and Java development. Committed to continuous learning and innovation in the field of technology.