Java (programming language) - Simple English Wikipedia, the free ... [PDF]

Unchanged C++ or C code will not work in Java, in most cases, though Java looks much like C and C++. ... It should be si

3 downloads 35 Views 74KB Size

Recommend Stories


Advanced Java Programming - Free Computer Books [PDF]
A Collection of Advanced Java Programming Books. ... In this hands-on, example-driven guide, Java developers and architects will learn how to navigate popular application frameworks, such as Dropwizard and Spring Boot, and how to deploy and .... The

Java Network Programming Pdf
Suffering is a gift. In it is hidden mercy. Rumi

PdF The Go Programming Language
Don't fear change. The surprise is the only way to new discoveries. Be playful! Gordana Biernat

PdF The Go Programming Language
I tried to make sense of the Four Books, until love arrived, and it all became a single syllable. Yunus

Goat - Wikipedia, the free
Love only grows by sharing. You can only have more for yourself by giving it away to others. Brian

programming language - The Osmosian Order of Plain English ... [PDF]
My source code, my executable self, and this very documentation. (in both native and PDF format) are all contained in the CAL-3040 folder. Simply double-click the executable file to activate me. SUPPORT. Let me put it this way. The CAL-3040 is the mo

Effective Java Programming Language Guide Bloch
If your life's work can be accomplished in your lifetime, you're not thinking big enough. Wes Jacks

[PDF] Introduction to Java Programming
So many books, so little time. Frank Zappa

[PDF] Introduction to Java Programming
Courage doesn't always roar. Sometimes courage is the quiet voice at the end of the day saying, "I will

[PDF] Introduction to Java Programming
You have to expect things of yourself before you can do them. Michael Jordan

Idea Transcript


Java (programming language) Java is object oriented. Unchanged C++ or C code will not work in Java, in most cases, though Java looks much like C and C++. Java can run on many different operating systems. This makes Java platform independent. Java does this by making the Java compiler turn code into Java bytecode instead of machine code. This means that when the program is executed, the Java Virtual Machine interprets the bytecode and translates it into machine code.

Contents Java concepts Java Platform Java Program Example Types of Java Benefits Criticism References Other websites

Java concepts Java was developed to achieve 5 main goals. These are: [1][2] It should be simple, object-oriented, distributed and easy to learn. It should be robust and secure. It should be independent of a given computer architecture or platform. It should be very performant. It should be possible to write an interpreter for the language. The language should also support parallelism and use dynamic typing.

Java Platform The Java platform refers to a group of software products from Sun Microsystems. The platform is used to develop and run Java programs. The platform includes the execution engine (called a Java Virtual Machine) that allows Java programs to do the same thing on different computer systems. This capability of being able to develop software on one platform and running it on other platforms is called "cross-platform capability".

Java Program Example An example Hello java program: /** * This is a simple program in Java. * It shows "Hello World!" on the screen. */ class Hellojavaprogram { public static void main(String[] args) { System.out.println("Hello World!"); } }

Types of Java There are many types of Java programs which run differently: Java Applet - small program written in Java and that is downloaded from a website and executed within a web browser on a client computer. Application - executes on a client computer. If online, it has to be downloaded before being run. JAR file (Java ARchive) - used to package Java files together into a single file (almost exactly like a .zip file). Servlet - runs on a web server and helps to generate web pages. Swing application - used to build an application that has a GUI (windows, buttons, menus, etc.). EJB - runs on a web server and is used to develop large, complex websites.

Benefits Java is commonly used to teach students how to program as a first language, yet is still also used by professionals. Java requires that each variable be initialized. Some older languages such as C, allow variables to go uninitialized, which can cause random failures with mysterious bugs. Java requires that each method that declares a return type, always return a value. This also prevents bugs. Java comes with a large set of classes and methods, the Java API that can be used without having to develop as much code "from scratch". Unlike C, Java primitive types, such as int, are always the same size in the number of bits which helps achieve cross-platform compatibility. Java used to be thought of as being slower than C, but that's less important in recent years with computers being faster. Java has exception-handling that requires a programmer to handle error-conditions such an Input/Output errors. Code compiled on one Java platform can be run on other platforms that support Java without modification of either the source-code nor the byte-code. For example, this means that a person can make a Java program for a Windows computer and have it run a Linux computer or a Mac computer.

Criticism The programming language Java has also been criticized. Some of the criticisms are: Generics were added to Java in such a way so that existing code would still keep running. This was done using type erasure. This means that during compilation, the actual type of a generic argument is removed. This can lead to the Java interpreter to behave in unexpected ways at times. Java has no unsigned integer types, which languages like C heavily use. This also means that it is impossible to directly exchange numeric data between C and Java programs. Cryptography also relies on such types to some extent; this makes it more difficult to write applications that use cryptography in Java. The IEEE has defined a standard for floating-point arithmetic, IEE 754. Java only supports a part of the features of this standard.

References 1. James Gosling, Henry McGilton: The Java Language Environment. 1.2 Design Goals of the Java Programming Language. (http://java.sun.com/docs/white/langenv/Intro.doc2.html) Mai 1996. 2. The Java Language: An Overview. (http://www.cs.dartmouth.edu/~mckeeman/cs118/references/OriginalJavaWhitepaper.pdf) James Gosling, February 1995

Other websites Java home page (http://www.java.com/) Java for developers (http://java.sun.com/)Java Tutorials (http://memorynotfound.com/) Java Tutorials (http://memorynotfound.com) Java tutorials from Sun (http://java.sun.com/docs/books/tutorial) A Brief History of the Green Project (https://duke.dev.java.net/green/) Java: The Inside Story (http://sunsite.uakom.sk/sunworldonline/swol-07-1995/swol-07-java.html) The Java Saga (https://www.wired.com/wired/archive/3.12/java.saga.html) A history of Java (http://ei.cs.vt.edu/~wwwbtb/book/chap1/java_hist.html) Java Training (http://www.kvch.in/product/java-training//) Retrieved from "https://simple.wikipedia.org/w/index.php?title=Java_(programming_language)&oldid=5894182"

This page was last changed on 22 November 2017, at 08:35. Text is available under the Creative Commons Attribution/Share-Alike License and the GFDL; additional terms may apply. See Terms of Use for details.

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.