Showing posts with label History of Java. Show all posts
Showing posts with label History of Java. Show all posts

Tuesday, September 12, 2017

First program in java

 First Program

First program in java

First program in java
First program in java
       Now that the basic object-oriented underpinning of Java has been discussed, let’s look at some actual Java programs. Let’s start by compiling and running the short sample program shown here. As you will see, this involves a little more work than you might imagine.
you should have IDE mean NetBeans or eclipse with compiler.
copy the code in to the java empty file in IDE and click Run the program


/* This is a simple Java program. Call this file "Example.java". */
class Example {
// Your program begins with a call to main().
public static void main(String args[])
{
System.out.println("This is a simple Java program.");
}
}

Java on Server Side

Java on Server Side

       Java on the Server Side As useful as applets can be, they are just one half of the client/server equation. Not long after the initial release of Java, it became obvious that Java would also be useful on the server side. The result was the servlet. A servlet is a small program that executes on the server. Just as applets dynamically extend the functionality of a web browser, servlets dynamically extend the functionality of a web server. Thus, with the advent of the servlet, Java spanned both sides of the client/server connection.
In simple word
Java on Server Side
Java on Server Side

Friday, December 23, 2016

History of Java



              Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.          
James Gosling initiated Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went by the name ‘Green’ and ended up later being renamed as Java, from a list of random words. Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms.
On 13 November, 2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL). On 8 May, 2007, Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright.

why java developed

        The Sun JVM is written in C, JVM run on your machine is a platform-dependent executable and hence could have een originally written in any language. The Oracle JVM (HotSpot) is written in the C++ programming language . JavaCompiler provided By Oracle is written in JAVA itself

Popular Java Editors

To write your Java programs, you will need a text editor. There are even more sophisticated IDEs available in the market. But for now, you can consider one of the following:


  1. Notepad: On Windows machine, you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
  2. Netbeans:  A Java IDE that is open-source and free, which can be downloaded from http://www.netbeans.org/index.html.
  3. Eclipse: A Java IDE developed by the eclipse open-source community and can be downloaded from http://www.eclipse.org/.

java in simple terms

           Java is a programming language. ... It was released in 1995 as a part of Sun Microsystems' Java platform. The language has developed much of its syntax from C and C++. Java applications are usually compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM).

Tips time:
C was developed at Bell Laboratories in 1972 by Dennis Ritchie. Many of its principles and ideas were taken from the earlier language B and B's earlier ancestors BCPL and CPL.


Popular Posts

Contact Form

Name

Email *

Message *