New 8-16 Java
New 8-16 Java
1. COURSE OUTCOMES
Reference Books:
1. Intro to Java Programming, 10th edition, Y.Daniel Liang, Pearson
2. Object oriented programming with Java , RajkumarBuyya,SThamaraiSelvi, Xingchen
Chu, McGrawHill
3. Programming in Java, SachinMalhotra, SaurabhChoudhary, Oxford
4. Programming with JAVA , E Balagurusamy, McGrawHill
5. CORE JAVA volume -I Cay Horstmann, Pearson
Major Equipment: Computer, Laptop
List of Open Source Software/learning website:
https://docs.oracle.com/javase/tutorial/java/index.html
https://www.tutorialspoint.com/JAVA/
https://dev.java/learn/
https://www.codecademy.com/learn/learn-java
https://www.w3schools.com/java/
Object Oriented Programming-I (3140705)
Java:
Java is a high-level, class-based, object-oriented programming language that is designed to have
as few implementation dependencies as possible. It is a general-purpose programming language
intended to let programmers write once, run anywhere (WORA), meaning that compiled Java
code can run on all platforms that support Java without the need for recompilation. Java
applications are typically compiled to bytecode that can run on any Java virtual machine (JVM)
regardless of the underlying computer architecture.
OpenJDK:
OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java
Platform, Standard Edition (Java SE). It is the result of an effort Sun Microsystems began in 2006.
The implementation is licensed under the GPL-2.0-only with a linking exception. Were it not for
the GPL linking exception, components that linked to the Java class library would be subject to
the terms of the GPL license. OpenJDK is the official reference implementation of Java SE since
version 7.
JVM:
The Java Virtual Machine, or JVM, executes live Java applications. Every JRE includes a default
JRE, but developers are free to choose another that meets the specific resource needs of their
applications.
JRE:
The Java Virtual Machine, or JVM, executes live Java applications. Every JRE includes a default
JRE, but developers are free to choose another that meets the specific resource needs of their
applications. The Java Virtual Machine, or JVM, executes live Java applications. Every JRE
includes a default JRE, but developers are free to choose another that meets the specific resource
needs of their applications.
JAVA IDEs:
IDEs typically provide a code editor, a compiler or interpreter and a debugger that the developer
accesses through a unified graphical user interface (GUI). Here are a few popular Java IDEs:
Eclipse: a Java-based open source platform that enables the creation of highly customized IDEs
from plug-in components built by Eclipse members. The platform is user-friendly for beginners
and also suitable for the creation of more sophisticated applications. Eclipse includes a lot of plug-
ins that allow developers to develop and test code written in other languages.
NetBeans: a Java-based IDE and underlying application platform framework. In addition to Java,
JavaScript and JavaFX, NetBeans supports C/C++, PHP, Groovy, and HTML5.
Object Oriented Programming-I (3140705)
Following are the steps on how to install Java in Windows 10 for JDK 8 free download for 32 bit
or JDK8 download for Windows 64 bit and installation
Step 2) Next,
Step 3) When you click on the Installation link the popup will be open. Click on I reviewed and
accept the Oracle Technology Network License Agreement for Oracle Java SE development kit
and you will be redirected to the login page. If you don’t have an oracle account you can easily
sign up by adding basics details of yours.
Object Oriented Programming-I (3140705)
Step 4) Once the Java JDK 8 download is complete, run the exe for install JDK. Click Next
Step 5) Select the PATH to install Java in Windows… You can leave it Default. Click next.
Object Oriented Programming-I (3140705)
The PATH variable gives the location of executables like javac, java etc. It is possible to run a
program without specifying the PATH but you will need to give full path of executable like
C:\Program Files\Java\jdk1.8.0_271\bin\javac A.java instead of simple javac A.java
The CLASSPATH variable gives location of the Library Files.
Let’s look into the steps to set the PATH and CLASSPATH
Step 6) Copy the path of bin folder which is installed in JDK folder.
Note: In case you already have a PATH variable created in your PC, edit the PATH variable to
PATH = <JDK installation directory>\bin;%PATH%;
Here, %PATH% appends the existing path variable to our new value