What are the features of JAVA? - Guide Me : Top 10 Guide Help | Study Guiding | Traveling Guiding | Top 10 Guiding | Game Guiding

Post Top Ad

What are the features of JAVA?

Share This


Features Of Java

01. Java is simple
No language is simple, but java is a bit easier than the popular object-oriented programming language C++, which was the dominant software-development language before Java.
Java is partially modeled on C++, but greatly simplified and improved. For instance, pointer and multiple inheritance often make programming complicated. Java replaces the multiple inheritance in C++ with a simple language construct called an interface, and eliminates pointers.
Java uses automatic memory allocation and garbage collection, whereas C++ requires the programmer allocate memory and collect garbage. Also, the number of language construct is small for such a powerful language. The clean syntax makes Java programs easy to write and read. Some people refer to Java as “C++--“because it is like C++ but with more functionality and fewer negative aspects.

02. Java is Object-Oriented
Java is inherently object-oriented. Although many object-oriented languages began strictly as procedural languages, Java was designed form the start to be object-oriented. Object-oriented programming (OOP) is a popular programming approach that is replacing traditional procedural programming techniques. Software systems developed using procedural programming languages are based on the paradigm procedures. Object-oriented programming models the real world in terms of object, and a window icon is an object. Evan a loan can be perceived as an object. A Java program is object-oriented because programming in Java is centered on creating objects, manipulating objects, and making objects work together.

One of the central issue in software development is how to reuse code. Object-Oriented programming provides great flexibility, modularity, clarity and re-usability through encapsulation, inheritance and polymorphism. For years, Object-Oriented technology was perceived as elitist, requiring a substantial investment in training and infrastructure. Java has helped object-oriented technology enter the mainstream of computing. Its simple, clean syntax makes programs easy to write and read. Java programs quite expressive in terms of designing and developing applications.

03. Java Is Distributed
Distributed computing involves several computers working together on a network. Java is designed to make distributed computing easy. Since networking capability is inherently integrated into Java, writing network programs is like sending and receiving Data to and from a file.

04. Java Is Interpreted
You need interpreted run to Java programs. The programs are complied in to the Java Virtual Machine code called bytecode. The bytecode is machine-independent and can run on any machine that has a Java interpreter, which is part of the Java Virtual Machine (JVM).

Most compilers, including C++ compilers, translate programs in a high-level language to machine code. The code can only run on the native machine. If you run the program on other machines, it has to be recompiled on the native machine. For instance, if you compile a C++ program in Windows, the executable code generated by the compiler can only run on the Windows platform. With Java, you compile the source code once, and the bytecode generated by a Java compiler can run on any platform with a Java interpreter. The Java interpreter translates the bytecode into the machine language of the target machine.

05. Java Is Robust
Robust mean reliable. No programming language can ensure complete reliability. Java puts a lot of emphasis on early checking for possible errors, Because Java compilers can detect many problems that would first show up at execution time in other languages. Java has eliminated certain types of error-prone programming constructs found in other languages. It does not support pointers, for example, thereby eliminating the possibility of overwriting memory and corrupting data.

Java has a runtime exception-handling feature to provide programming support for robustness. Java forces the programmer to write the code to deal with exceptions. Java can catch and respond to an exceptional situation so that the program can continue its normal execution and terminate gracefully when a runtime error occurs.

06. Java Is Secure
As an Internet programming language, Java is used in a networked and distributed environment. If you download a Java applet (a special kind of program) and run it on your computer, it will not damage your system because Java implements several security mechanisms to protect your system against harm caused by stray programs. The security is based on the premise that nothing should be trusted.

07. Java Is Architecture-Natural
Java is interpreted. This feature enables Java to be architecture-natural, or to use an alternative term, platform-independent. With a Java Virtual Machine (JVM), you can write one program that will run on any platform. Java’s initial success stemmed from its Web-Programming capability. You can run Java applets from a web browser, but Java is for more than just writing web applets. You can also run standalone directly from operating Systems, using a Java interpreter Today, Software vendors usually develop multiple versions of the same product to run on different platforms (Windows, OS/2, Macintosh, and various UNIX, IBM AS / 400, and IBM mainframes.) Using Java, developers need to write only one version that can run on every platform.

08. Java Is Portable
Because Java is architecture natural, Java programs are portable. They can be run on any platform without being recompiled. Moreover, there are no platform-specific features in the Java language. In some language, such as Ads, the largest integer varies on different platforms. But in Java, the range of the numbers makes the program portable. The Java environment is portable to new hardware and operating systems. In fact, the Java compiler itself is written in Java.

1 comment:

Post Bottom Ad