
Today we will learn:
1. What is JAVA
2. A simple architecture of java
3. IDE for Java (to write java programs)
1. Java is a programming language
Sun Microsystems
James Gosling - 1991 - 1995
2. Architecture : Platform independent
3. IDE for java - integrated development environment
Step 1: check if java is already installed
java -version
Step 2: download java from internet
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Step 3: Run the java exe
Step 4: Setting environment variables
Step 5: check if java is installed and available
Today we will learn
1. How to setup and install java on mac os
2. How to setup Java env variables
3. How to change/switch java version on your system
Step 1 : check if java is installed
Terminal : java -version
: javac -version
Step 2 : download and install java
http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
Step 3 : How to set java env variable - JAVA_HOME
echo $JAVA_HOME
setting JAVA_HOME
setting JAVA_HOME in .bash_profile
Step 4 : How to switch java version
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
Today we will learn
1. How to download eclipse
2. Getting ready for java programming
IDE - integrated development environment
Step 1 : download eclipse
Step 2 : unzip - start eclipse - provide workspace location
Step 3 : Open workbench
Today we will learn
1. Create and Run first java program
2. Compile and Run
Step 1 : Open Eclipse - select workspace
Step 2 : Create Java Project - create package - create Class
Step 3 : Create a Java program
Step 4 : Compile and Run
Today we will learn
1. How to compile and run java program from command line
Step 1 : goto command line / terminal - goto the location of java file
Step 2 : Compile java program
javac “name of java file”
Step 3 : Execute java program
java “name of java file without extension”
Today we will learn
1. What is JAR
2. Why do we need JAR files
3. How to create JAR file from Java Project
4. How to extract contents from a JAR file (Java Decompiler)
__________________________________
JAR = Java Archive
- compressed format of a compiled java project
- contains .class files + meta data and some other resources
- used to distribute java code/libraries for use by other projects
- direct execution of java program (w/o IDE)
e.g. javamail jar
Today we will learn:
Basics of JDK, JRE and JVM:
____________________________
JDK : Java Development Kit
env to develop, compile and run java application
JRE : Java Runtime Environment
env to run java applications
JVM : Java Virtual Machine
interpreter to execute java programs (byte code) line by line
______________________________________________________
JVM = executes precompiled java programs (.class , .jar files / bytecode)
JRE = JVM + Libraries to run java program
JDK = JRE + Tools to develop java programs
_________________________________________________________
Today We Will Learn:
1. What is Object Oriented Programming (OOP)
2. How did OOP came into existence
- Non-Structured Programming
- Structured Programming
- OOP - Object Oriented Programming
3. Understand OOP with Real Life Examples
--------------------------------------------------------------------------------
We will understand:
Examples of Object Oriented Programming
Classes and Objects
How can you relate OOP with real life entities
Easy and interesting way of learning Object Oriented Programming with examples
________________________________________________________________
Today we will learn:
1. Convert information into tables
2. Create Class and variables using tables
3. Create Objects
4. Run the OO(Object Oriented) program
_____________________________________________________
Step 1 : Represent Account Holder details in a simple table
Step 2 : Create a Java Class with name as TableName and Variables as column names
Step 3 : Create another class where we will create objects for Account Holder class
Step 4 : Create objects for Tom, Henry and Sarah and provide details as below
Step 5 : Run and validate
______________________________________________________
Today we will learn...
What is exception handling
How to implement exception handling in project
What is exception handling
Exception
unexpected condition at runtime
Exception Handling
Handling any unexpected behavior during execution
Catch the exception and log messages for troubleshooting
Enables continuation of runs even if a test fails
If you want to understand the basics of java in an easy and fun way, this course is for you.
You will learn:
1. What is Java
2. How to install Java
3. How to write first Java Program
4. Understand what is JRE, JDK, JVM and JAR
5. Understand and implement Object Oriented Concepts
We will have fun learning java.
Let's Get Started