I OOP J: Ntroduction TO Using AVA
I OOP J: Ntroduction TO Using AVA
JAVA
Tanjina Helaly
WHAT IS PROGRAMMING
Instruction to computer/device to perform task.
Computer understands only 0 and 1. Nothing
else.
So, we need to send the instruction in the form of
0, 1
Do you write program with just 0 and 1?
CLASSIFICATION/EVOLUTION OF
PROGRAMMING
Machine level programming
Send instruction in binary format
Assembly Programming
send code instead of binary code.
Need assembler to convert to binary
High level programming
Code is close to English Language
Need Compiler to convert to binary
3 types
Non structured
Structured/Procedural
c:>java HelloWorld
It runs java byte code on native machine
JAVA IDE
Creating, Compiling, Debugging and Execution
for these four steps JDK is not user friendly. IDE
is provided for that. A list of IDEs are:
Eclipse
Netbeans.
IntelliJ IDEA
AN EXAMPLE HELLOWORLD
public class HelloWorldExample
{
public static void main( String args[] )
{
System.out.println("Hello World");
}
}
JAVA SOURCE CODE NAMING
CONVENTIONS
All java source file should end with .java
Each .java file can contain only one public
class
The name of the file should be the name of
the public class plus ".java"
Do not use abbreviations in the name of the class