Model 1: Basic Java Programming Flashcards
A Java program is structured in a
specific and particular manner.
The new features and upgrades included in Java changed the face of the programming environment and gave a new definition
to Object-Oriented Programming (OOP in short)
The primary goals in the creation of the Java language:
- It is Simple & Portable: Memory Management using Pointers is not allowed.
- It is Object-Oriented.
- It is Independent of the host platform.
- It is Secured & Dynamic: Designed to execute code from remote sources securely.
- It contains language facilities and libraries for Networking.
- High Performance: With the use of JIT (Just-In-Time) compilers, Java achieves high performance through the use of byte code that can be easily translated into native machine code.
- It is Robust: Java has its own strong memory management system. This helps to eliminate errors as it checks the code during compile and runtime.
-Java is Multithreaded: It supports multiple executions of threads (i.e., lightweight processes), including a set of synchronization primitives.
Java is a popular programming language
for embedded system development, back end systems and APIs.
An embedded system is a combination of
computer hardware and software designed for a specific function.
Method definitions
are grouped into classes
Most lines of code end in a semi-colon but for
Method and class definitions do not.
The main unit of organization in a Java program
is the class
Indentation: Every method declaration in a class should be indented one level.
Then, the body of the method should be indented another level as well.