JAVA is a machine independent and operating system independent language. A program written in JAVA can be run on any machine or in any platform provided the interpreter of that particular platform. ADVANTAGES: • Simple and powerful. • safe. • Robust. • Interactive. • Neutral. • Interpreted and high performance. JAVA FEATURES: JAVA IS SIMPLE Even though Java is object oriented, there are some differences in C++ and JAVA. In Java there are no pointers, no multiple inheritance, no go to, an operator overloading. The Java language has an embedded auto garbage collection mechanism. The Garbage collector simplifies Java programming by automatically freeing memory area when it is not required. Java programs are therefore simple, comparative bug-free Memory management. JAVA IS OBJECT - ORIENTED Java is an Object – Oriented language. It defines data as objects with methods that support the objects. Java does not support multiple inheritance. It support the objects. Java does not support multiple inheritance. It supports inheritance where one class can inherit from only one other class; on the other hand Java supports abstract classes using which, programmers can stimulate multiple inheritance. The abstract base class for all Java classes is a class called an object. All the code used for Java is divided into classes. Behaviors can be inherited from one class to the next. JAVA IS DISTRIBUTED Java like any other Client/Server application, Java shares the
Java was designed at the Sun Microsystems in 1992 by James Gosling and the Green Team, these individuals designed an operating system with an independent processor, object oriented programming language which is the leading interactive environment used on the web. This open source software are used on a variety of devices, music players, automobiles, cells, and smart phones. Java has changed the computer environment because the developers designed it to operate on any computing devices regardless of the specific microprocessor or the operating system it is installed on (Laudon, 2014).
Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.
In the long distant future, in the year 2016, the cable news empire has fallen, and former talking heads have stooped to running for political office. In fact, five former talk show stars are running for President of the United States, and locked in a close race.
around objects and data rather than action and logic. Due to this OOP allowed decomposition of
Code Reusability: The object-oriented features allow the high reusability of code. For example, when a new object is created, it will inherit all the attributes and methods of the class of which it is an object of, in addition to all the parent classes of that class.
The two programming paradigms we get is Object-Orientated and Procedural. To understand what they are we need to explain what each are and how they operate and what are the strengths and weaknesses of each. Now Procedural Programming languages are referred to as straight programming taking on a read from the top to the end method, whereas Object-Oriented programming use objects and classes. Procedural takes on applications by solving problems from using a top to down way reading the problem from the start and going through everything until the program is finished at the end (Eliason, 2015).
C++ is a very fast and well built language. The focus of this language is, building code that will run on a specific machine
In 1998 Java has evolved dramatically and it became called Java 2. Also among the most important developments that have been developed in this version its Java capabilities in the graphical interface. As well there have been many developments in this language which still continuously developed. And the aims of Java are: Object-oriented, It provides possibility of running programs written by it as remote computers securely, Create programs with graphical user interface and Software design benefit from all the advantages of the Internet. Java has evolved through the years and it used to making library programs like: Internet Software, Internet pages, Mobile Applications and many
import java.util. ArrayList; public class bPlusTree { public genericNode root; public static int O; /** * takes order input from the file and initialize that tree. * @param order */ static void Initialize(int order){ O = order-1; } /** * Inserting key value pairs in the tree.
Very soon java became popular in the software community, which resulted in more and more companies building their line of products in Java.
Java could be a machine artificial language that 's coincidental, class-based, object-oriented, and significantly meant to own as few usage conditions as would be prudent. it 's expected to let application designers "write once, run anywhere" (WORA), implying that code that runs on one stage doesn 't need to be recompiled to run on AN alternate. Java applications ar unremarkably incorporated to bytecode (class document) which will run on any Java virtual machine (JVM) . Java is, as of 2014, a standout amongst the foremost distinguished artificial language being employed, particularly for client server internet applications. Java was ab initio created by James goose at Sun Microsystems (which has since amalgamated into Oracle Corporation) and discharged in 1995 as a middle phase of Sun Microsystems ' Java stage. The language infers abundant of its linguistic use from C and C++, nonetheless it 's less low-level offices than each of them. The first and reference execution Java compilers, virtual machines, and sophistication libraries were made by Sun from 1991 and ab initio discharged in 1995. As of could 2007, in consistence with the particulars of the Java Community method, Sun relicensed the overwhelming majority of its Java innovations beneath the antelope General Public License. Others have to boot created choice executions of those Sun innovations, as an example, the antelope Compiler for Java, antelope Classpath, and Icedtea-Web.
While many of the security holes have been fixed, even the fixes have issues. In 2013, a zero-day vulnerability was caused by a patch to fix an earlier vulnerability. So, at the same time that Java was growing and being used in more applications, it was also being used in a malicious manor against those who may not even realize they were using it.
i.The user can organize their program into smaller programs which helps better maintaining the code.
Inheritance in java is a methodology in which one object gets every one of the properties and nature of parent object mainly used for Method overriding and code reusability.
Cross-platform - The Arduino software supports on Windows, Macintosh OSX, and Linux operating systems. Most microcontroller systems are restricted to Windows only.