


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Programming Paradigms
-^
Object Oriented Programming^ –
Class and Object
-^
Abstraction
-^
Three Object Oriented Principles
Java Language and Programs
-^
Developing a Java Application
-^
Setup SDK
Programming Paradigms
-^
Procedural Language^ –
a programmer specifies a set of instructions to perform a specific task inthe form of procedures or functions
-^
C, Fortran etc.
-^
Program’s data shared among procedures
-^
Procedures dealt mainly with basic data types
-^
Procedures dealt mainly with basic data types
-^
Data centric
-^
Become unmanageable when logic becomes complex
-^
No reuse functionality
-^
Object Oriented Paradigm^ –
Object oriented approach organizes a program around its data (object)and a set of well defined interfaces to its data.– New tool: Classes & Objects
-^
C++, Java
read first number read second numberset total to (first number +
second number)
output total
read a number if the number is greater than
or equal to 0 write "Number is positive." else
write "Number is negative."
set total to 0 read a numberwhile there was a number to
read,
add number to totalread the next number write total
1
// First program in Java 2
// FirstProgram.java 3 4
public class FirstProgram 5
{ 6
public static void main( String [] args )
6
public static void main( String [] args )
7
{
8
System.out.println( "Programming is not "
9
10
System.exit( 0 );
11
}
12 }
Integrated Development Environment
-^
Download & Install Java JDK and NetBeanshttp://java.sun.com/j2se/1.5.0/download.jsp
click