Saturday, March 7, 2020
Free Essays on Java
1. INTRODUCTION 2 1.1 What is Java? 2 1.2 Who created Java and why? 4 1.3 How Java became what it is today. 4 2. WHY USE JAVA? 5 2.1 Introduction 5 2.2 Java as a Object Oriented language 5 2.3 Design Tradeoffs Summary 6 2.4 Java Features 7 3. VARIABLES, SCOPE, AND DATA TYPES 10 3.1 Basic Variables and Arrays 10 3.2 Expresseions and Operators 12 3.3 Java Object 13 3.4 Conditionals and Loops 14 3.5 Java Applet 15 3.6 Creating Graphics in Java 16 Java Libraries 18 4. CONTRIBUTORS 18 5. CONCLUSION 19 6. BIBLIOGRAPHY 20 1. Introduction 1.1 What is Java? Java is a groundbreaking computing platform released by Sun Microsystems in 1995. It enables the same application to run on lots of different computers and devices. Java accomplishes this because the source code is translated to byte code (an intermediate code) and then interpreted by the Java Virtual Machine. Therefore, any computer with the JVM can execute a Java program. The process Java uses to execute programs is called a hybrid implementation system. It is called a hybrid because it is a compromise between compilers and pure interpreters implementation systems. This allows faster interpretation, but Java is still up to 20 times slower than C/C++. Visually, hereââ¬â¢s the difference between traditionally compiled programs and Java programs. o The compiler translates program into machine code or processor instructions. Those instructions are specific to the processor your computer is running. If you compile your code on an Intel-based system, the resulting program will run only on other Intel-based systems. If you want to use the same program on another system, you have to go back to your original source code, get a compiler for that system, and recompile the code so that you have a program specific to that system. o The Java development environment has two parts: a Java compiler and a Java int... Free Essays on Java Free Essays on Java 1. INTRODUCTION 2 1.1 What is Java? 2 1.2 Who created Java and why? 4 1.3 How Java became what it is today. 4 2. WHY USE JAVA? 5 2.1 Introduction 5 2.2 Java as a Object Oriented language 5 2.3 Design Tradeoffs Summary 6 2.4 Java Features 7 3. VARIABLES, SCOPE, AND DATA TYPES 10 3.1 Basic Variables and Arrays 10 3.2 Expresseions and Operators 12 3.3 Java Object 13 3.4 Conditionals and Loops 14 3.5 Java Applet 15 3.6 Creating Graphics in Java 16 Java Libraries 18 4. CONTRIBUTORS 18 5. CONCLUSION 19 6. BIBLIOGRAPHY 20 1. Introduction 1.1 What is Java? Java is a groundbreaking computing platform released by Sun Microsystems in 1995. It enables the same application to run on lots of different computers and devices. Java accomplishes this because the source code is translated to byte code (an intermediate code) and then interpreted by the Java Virtual Machine. Therefore, any computer with the JVM can execute a Java program. The process Java uses to execute programs is called a hybrid implementation system. It is called a hybrid because it is a compromise between compilers and pure interpreters implementation systems. This allows faster interpretation, but Java is still up to 20 times slower than C/C++. Visually, hereââ¬â¢s the difference between traditionally compiled programs and Java programs. o The compiler translates program into machine code or processor instructions. Those instructions are specific to the processor your computer is running. If you compile your code on an Intel-based system, the resulting program will run only on other Intel-based systems. If you want to use the same program on another system, you have to go back to your original source code, get a compiler for that system, and recompile the code so that you have a program specific to that system. o The Java development environment has two parts: a Java compiler and a Java int... Free Essays on Java With most programming languages, you either compile or interpret a program so that you can run it on your computer. The Java programming language is unusual in that a program is both compiled and interpreted. With the compiler, first you translate a program into an intermediate language called Java bytecodes - the platform-independent codes interpreted by the interpreter on the Java platform. The interpreter parses and runs each Java bytecode instruction on the computer. Compilation happens just once; interpretation occurs each time the program is executed. The following figure illustrates how this works. You can think of Java bytecodes as the machine code instructions for the Java Virtual Machine (Java VM). Every Java interpreter, whether it's a development tool or a Web browser that can run applets, is an implementation of the Java VM. Java bytecodes help make "write once, run anywhere" possible. You can compile your program into bytecodes on any platform that has a Java compiler. The bytecodes can then be run on any implementation of the Java VM. That means that as long as a computer has a Java VM, the same program written in the Java programming language can run on Windows 2000, a Solaris workstation, or on an iMac. The Java Platform A platform is the hardware or software environment in which a program runs. We've already mentioned some of the most popular platforms like Windows 2000, Linux, Solaris, and MacOS. Most platforms can be described as a combination of the operating system and hardware. The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has two components: à · The Java Virtual Machine (Java VM) à · The Java Application Programming Interface (Java API) You've already been introduced to the Java VM. It's the base for the Java platform and is ported onto various hardware-based platforms. The Java ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.