Skip to main content

Characteristics of Java OR Java Buzzwords (Part 3)

>

Java Properties: (Part 3)

  1. Distributed:
    • Java is designed for the distributed environment of the Internet, because it handles TCP/IP protocols. The protocols designed for inter-process communications between client and server, or host machine and server machine can be easily implemented in java. The network layer facilities are provided by inbuilt libraries and functions in java.
  2. Secure:
    • No pointers are used in Java.
    • Bytecode verifier: The JVM verifies all bytecode before it is executed. This verification consists primarily of three types of checks:
      • Branches are always to valid locations
      • Data is always initialized and references are always type-safe
      • Access to private or package private data and methods is rigidly controlled.
    • Class loader: Classes are introduced into the Java environment when they are referenced by name in a class that is already running. Once the main class is loaded and is running, future attempts at loading classes are done by the class loader.
    • Security manager: The security manager is a class that allows applications to implement a security policy. It allows an application to determine what the operation is and whether it is being attempted in a security context that allows the operation to be performed. The application can allow or disallow the operation.
  3. High performance:
    • Unlike other languages, Java performs well even on low power CPU’s.
  4. Portable:
    • Many types of computers and operating systems are in use throughout the world—and many are connected to the Internet. For programs to be dynamically downloaded to all the various types of platforms connected to the Internet, some means of generating portable executable code is needed. There is same mechanism that helps ensure security also helps create portability in java through bytecodes.
Characteristics of Java PART 1 is HERE
Characteristics of Java PART 2 is HERE

Comments

Relevant to YOU:

Popular posts from this blog

ASCII Code in Java (Part 1)

> The ASCII Code: (Part 1) ASCII stands for "American Standard Code for Information Interchange". As you may remember (Grade 9), computers only work with HIGH(1) and LOW(0) electrical states, known as bits, with correspond to mathematical Base 2 numbers. That is, computers only understand binary language. ASCII codes represent text (or other things) in computers. Assume that you are working with MS Word, or PPT or any other tool that uses text based inputs from user. You need to type a sentence that computer is not aware of. ASCII codes help to exchange this information between user and computer. When you type a character, it is converted into ASCII code first and then into Binary, which makes the computer understand what is to be typed. Hence every key on the keyboard has a specific ASCII code which is used to make the computer understand our language. If you press 4 from keyboard, then keyboard send the value 100 (value equival...

Characteristics of Java OR Java Buzzwords (Part 2)

> Java Properties: (Part 2) Robust: Java is robust because it is more reliable. It ensures the reliability by providing early checking for possible errors. It eliminates error causing constructs such as pointers. Java restricts the programmers in a few key areas, to force them to find mistakes early in program development. At the same time, Java frees from having to worry about many of the most common causes of programming errors. Because Java is a strictly typed language, it checks the code at compile time. However, it also checks your code at run time. Consider two main reasons of program failure: Memory management mistakes and Mishandled exceptional conditions (run time errors). Memory management is difficult and tedious in c/c++, the programmers have to manually allocate and free memory. This sometimes leads to problems, because programmers will either forget to free memory that has been previously allocated or, worse, try to ...