Assign 1
Assign 1
Assign 1
Assignment 1
Khaled Mahmoud
Ci893
What are the characteristics of JAVA programming
language? Discuss in detail.
simple
If you are familiar with C or C++ programming, Java will come naturally to you
because it borrows many of its syntaxes from those two languages. Numerous
complex and rarely used features, including pointers, operator overloading, etc., have
been eliminated from Java. Additionally, an automatic garbage collector eliminates
memory-hungry and inactive object instances without the need for manual
intervention.
Object-Oriented
Instead than concentrating on the logic needed to control the objects, object-
oriented programming (OOP) concentrates on the objects that developers want to
handle. Big, complex, and regularly updated or maintained projects are best suited for
this type of programming. This includes mobile applications as well as design and
manufacturing software; for instance, OOP can be used to model manufacturing
systems.
Platform Independent
Robust
Architectural Neutral
Portable
Because Java programs are architecture-independent, they are portable. They do not
require recompilation to run on any platform. Java programs can be translated into
byte code, which is portable.
Performance
Because byte codes are so close to machine code, Java's performance and
efficiency are exceptional. However, it is still slower than compiled languages such as
C++. The primary issue is that, unlike C and C++ programs, Java applications execute
on a Java virtual machine (JVM) after compilation rather than directly on the
computer's CPU as native code.
The performance of a Java bytecode compiled Java program is governed by how
well the host Java virtual machine (JVM) manages its assigned duties and how well
the JVM makes use of the computer hardware and operating system (OS). Its
performance is sufficient for most interactive applications where the CPU is
frequently idle waiting for input or data from other sources.
Distributed
Multithreaded
Multi-threading is a Java feature that allows two or more portions of a program to
run at the same time to maximize CPU performance. A thread is one of the program's
components. Threads are thus lightweight processes contained within processes. A
user, for example, can listen to an audio recording while perusing the web. In network
programming, a server can serve multiple clients at the same time. Similarly, there are
several things happening on at the same time in GUI programming. These concurrent
processes can be implemented in Java using multi-threading.
dynamic
Java is considered dynamic due to bytecode. Source code written on one platform
can be executed on any other platform. The class file is only loaded at runtime. As a
result, everything that happens during the runtime is dynamic. Java also supports
dynamic compilation as well as memory management (garbage collection).