Java Intro
Java Intro
Programming language
Program
"Collection of steps"
Algorithm independent
MANUAL
Addition of 2 nos
step 1 : start
step 2 : take 2 values(a,b)
step 3 : add 2 values c=a+b
step 4 : print addition of 2 values( c)
step 5 : stop
a=10 b=20
c=10+20=30
addition of 2 values =30
** multiplication of 3 numbers
step 1 : start
step 2 : take 3 values(x,y,z)
step 3 : product of 3 values m=x*y*z
step 4 : print multiplication of 3 values( m)
step 5 : stop
compiler
2 ...
4....
interpreter
Introduction to Java
History
James Gosling in Sun Microsystems
"Oak" tree
1991
"java" Coffee plant in Indonasia
Web application
General application
1995
jdk1.0
jdk1.8
Java Development Kit
JRE
JVM
JSL ??
SOFTWARE
we can directly download from "Oracle corporation"
IDE
Integrated Dev Environment
netbeans
eclipse
syncjEdit
notepad++
OOP
Object Oriented Programming
CLASS
OBJECTS
INHERITANCE Reusability extends
Android
Polymorphism
single thing works differently
student
children
friend
poly many
morphism changing
abstraction
encapsulation
hiding
dynamic binding
message communication
Object Ex
student 1001 suman EEE 1 RECORD/OBJECT
1002 RAVI ECE
attendance
exam
results tasks
sports
employee
ration
uid
class
members
operations tasks
methods
package statement
Collection
JSL
packages + sub packages+classes +methods
io
util
lang
net
applet
Math
mathematical functions
abs
pow(10,3)
Math.sqrt(36)
import statement
java does not support
Pre Processor directives
not including header files
instead ,we use packages
#include<stdio.h>
#define max 300
import java.io.*;
import java.awt.*;
interface defintions
To Achieve Multiple inheritance in java
it is almost a class
Executing program
we use java Interpreter "java"
To Execute the program ,we need to use the Class with main( )