JAVA overview

JAVA overview


What is JDK? JDK is the abbreviation of Java Development Kit which contains the compiler and the interpreter needed for the developer to write the code and then compile it and finally run it.

what is the JRE? JRE is the abbreviation of Java Runtime Environment which is needed by the client to run the application

Java is based on the OOP concept, the size of the object created from the class is: - 1-the total size from the attributes in this class 2-the size responsible for answering this question, from which class this object has been created, this part is called the lookup table.

Also, we have objects called Immutable objects, which means that you can’t modify the contents of the object after construction. If you want to update an object you couldn't modify it and you should create a new one because that is easy for the processor to create a new object rather than modify it. for ex: - String

String pool: - String objects that are created without using the “new” keyword are said to belong to the “String Pool”.

No alt text provided for this image

Threads

Thread is a single sequential execution path in a program, used when we need to execute two or more programs segments concurrently(multitasking).

In Java, we have for every program at least three threads, two are called by the system and the other is the main thread

The system threads are: - 1-Garbage Collection Thread: - responsible for removing any variable or reference after finishing using it.

2-Event Dispatcher Thread: -?event dispatching thread?(EDT) is a background?thread used in Java to process events from the Abstract Window Toolkit

No alt text provided for this image

Class Thread has these methods: - start() - run() - sleep() - suspend()* - resume()* - stop()*

Mohamed Ali

GIS Developer || Kore ai Professional "certified" Chatbot || GIS Utility Network || Software Developer @ Giza Systems

1 年
回复
Osama Hamdy

Embedded Software Engineer at Valeo

3 年

Great work as usual ???

Ayman Elgammal

Embedded Software Engineer at Valeo

3 年

Great work??

要查看或添加评论,请登录

Abdelrahman U3A的更多文章

  • Introduction to OOP

    Introduction to OOP

    As we know, structured programming was built on functions and called function-oriented. Each function has a specific…

  • Embedded System Concept

    Embedded System Concept

    Embedded System Concept:- A simple definition is a Computing system with limited resources to perform a specific task…

社区洞察

其他会员也浏览了