LEARN JAVA

Java is a general-purpose computer programming language that is concurrentclass-basedobject-oriented,[14] and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers “write once, run anywhere” (WORA),[15] meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.[16] Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. As of 2016, Java is one of the most popular programming languages in use,[17][18][19][20] particularly for client-server web applications, with a reported 9 million developers.[21] 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.

JAVA FOUNDER:

 

freefeast_gosling

                            best known as the creator of the Java programming language.[3][4]

James Gosling received a Bachelor of Science from the University of Calgary [5] and his M.A. and Ph.D. from Carnegie Mellon University.[2][6][7] While working towards his doctorate, he wrote a version of Emacs called Gosling Emacs (Gosmacs). Before joining Sun Microsystems he built a multi-processor version of Unix for a 16-way computer system[8] while at Carnegie Mellon University. There, he also developed several compilers and mail systems.

Between 1984 and 2010, Gosling was with Sun Microsystems. He is known as the father of the Java programming language.[9][10] He got the idea for the Java VM while writing a program to port software from a PERQ by translating Perq Q-Code to VAX assembler and emulating the hardware.

JAVA EVOLUTION:

java_versions.jpg

JAVA VERSIONS :

  • JDK 1.0 (January 23, 1996)[38]
  • JDK 1.1 (February 19, 1997)
  • J2SE 1.2 (December 8, 1998)
  • J2SE 1.3 (May 8, 2000)
  • J2SE 1.4 (February 6, 2002)
  • J2SE 5.0 (September 30, 2004)
  • Java SE 6 (December 11, 2006)
  • Java SE 7 (July 28, 2011)
  • Java SE 8 (March 18, 2014)

HOW TO INSTALL JAVA WORK ENVIRONMENT

Before getting into java  concept we should know where we are going to test our code ,in which environment we are going to run our programs.

The most up-to-date and current source code, binaries, documentation, news, etc., is available on the official website of java https://java.com/en/download/

You can download java documentation from  https://docs.oracle.com/javase/8/ .   The documentation is available in HTML, PDF.

INSTALLING JAVA IN UBUNTU

Before getting started to install java in ubuntu first step you need to do is update your system

1.To update your system the following command is used

cmd: sudo apt-get update && sudo apt-get upgrade(on your Terminal)

2.Install Oracle JDK(JAVA DEVELOPMENT KIT) to do so Install the software-properties-common package if you don’t already have it. This provides an easier way to add new repositories:

Cmd :sudo add-apt-repository ppa:webupd8team/java

3.Update local packages

cmd: sudo apt-get update

4.Install the metapackage:

cmd: sudo apt-get install oracle-java8-installer

5.Verify that Java and the Java compiler have been properly installed:

how to verify

cmd: java -version
cmd: javac -version

6.Since the PPA only provides an installer, and not updates for the JDK itself, you may want to delete it when you’re finished in order to keep your repositories organized:

comd:sudo add-apt-repository -r ppa:webupd8team/java

AFTER INSTALLING JAVA NEED TO SET VARIABLE FOR YOUR SYSTEM TO DO SO

1.To set the variable for your system:

echo “JAVA_HOME=$(which java)” | sudo tee -a /etc/environment

2.Reload your system’s environment variables:

source /etc/environment

3.Verify the variable was set correctly:

echo $JAVA_HOME

This should return the path to the Java binary.

OpenJDK(OpenJDK provides an open-source alternative that is just as easy to install)

To install OpenJDK:

cmd: sudo apt-get install openjdk-8-jdk

SOFTWARES AND IDE TO RUN JAVA IN YOUR SYSTEM:

1.Eclipse(Download Eclipse from OFFICIAL ECLIPSE WEBSITE)

Extract the archive, e.g the 64-bit version

tar xf eclipse-inst-linux64.tar.gz

Change your folder

cd eclipse-installer

Run the installer WITHOUT sudo to UPGRADE the installer

./eclipse-inst

INSTALLING NET BEANS

1.After installing java ,install net beans

2.download net beans from official website https://netbeans.org/downloads/

3. Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T shortcut key. When it opens run commands:

4.navigate to Downloads folder:

cmd: cd ~/Downloads

5.make the downloaded script executable:

cmd: chmod +x netbeans-8.2-javase-linux.sh

6.finally run the script:

cmd: ./netbeans-8.2-javase-linux.sh

ITS ALL OVER NOW EVERY THING IS FINISHED IN UBUNTU FOR DOING JAVA PROGRAMMING

 

INSTALLING JAVA ON WINDOWS

1.Visit the Java website and download the installer

Visit the “Download Java” page: https://java.com/download

2.After downloading you can easily install java in windows

there no need to set variable path manually it will be set automatically

IDE USED ON WINDOWS

1.first we need to download java then,

2.Download “NetBeans IDE” installer from http://netbeans.org/downloads/index.html

3.Run the Installer

ON MAC

  1. Download NetBeans from http://netbeans.org/downloads/. Set “Platform” to “Mac OS X”. There are many “bundles” available. For beginners, choose “Java SE” (e.g., “netbeans-8.2-javase-macosx.dmg” 116MB).
  2. Double-click the download Disk Image (DMG) file.
  3. Double-click the “NetBeans 8.x.mpkg“, and follow the instructions to install NetBeans. NetBeans will be installed under “/Applications/NetBeans“.
  4. Eject the Disk Image (“.dmg“).

JAVA TUTORIAL VIDEOS

LEARN JAVA FOR BEGINNERS

JAVA FRAMEWORKS

1.Spring MVC

spring1-1.png

Old but gold, Spring MVC is still ahead of the curve after more than a decade since its first release. After its expansion to embrace complete MVC framework, Spring kept on evolving adopting changes and turned into a full-scale Java framework for Internet-facing applications, offering software engineers a powerful toolkit for web application development and application configuration as well as for security projects. Being one of the most favored among programmers, Spring has a well-developed ecosystem, offering a variety of add-ons to choose from: REST APIs or SOAP web services, security (authentication and authorization, encryption), etc. Another benefit of this choice is that a big company of fellow developers who chose to use this particular Java framework, too. Thus, they are ready to give you a helping hand with any query you might have.

2.Struts 2

struts2.png

To elaborate even more on existing Java frameworks that are widely used by modern software engineers, we decided to refer to the successor of Apache’s Struts 1, Struts 2. This Java framework is quite a find for engineers who work with building contemporary Java EE web apps. The Apache Software Foundation has equipped developers with an extensive tool for creating enterprise-ready, web-facing applications, optimizing the development process from the beginning to the final point and post-go-live maintenance. This concept is the right choice if you sweat over high-load systems such as broadcasting portals.

3.Hibernate

hibernate_training-1-300x79.jpg

Although not on RebelLabs’ list either, it is worth mentioning Hibernate when debating the best Java framework. This mapping Java framework cracks object-relational impedance mismatch issues by substituting persisting DB accesses high-level object handling functions. With every enterprise application being one of a kind, Hibernate is equipped with a great feature suite that helps backend developers fine-tune data access layer. This is an advanced ORM framework that lets you perform the database operation on Java objects (entities). It is a persistence concept that utilizes Hibernate cache to persist the data from the Java environment to the database.

6. Google Web Toolkit

Gwt-1-300x192.jpg

GWT is an another free Java framework allowing coders to create and optimize sophisticated web-based apps. The GWT Software Development Kit features core Java APIs and widgets for constructing apps compiled to JavaScript after.

JAVA REFERENCE BOOKS:

JAVA COMPLETE REFERENCE

http://shop.oreilly.com/product/9780596009205.do

ONLINE COURSE TO LEARN JAVA

1.UDACITY -JAVA PROGRAMMING BASICS

JAVA DOCUMENTATION

OFFICIAL JAVA DOCUMENTATION

EASY UNDERSTANDING OF JAVA

EASY GUIDE TO JAVA

TUTORIAL POINT

 

Ok Thats Great You Learnt All The Concepts Of JAVA

Thanks For Reading …

Feel Free To Ask or Recommend Topics To discuss

Leave a comment