You are on page 1of 25

Welcome!

Dump you with JAVA


Full theory without examples
Confuse you with high-end terms
At the end, making you dumb in front of an
interviewer.

Aim of the workshop

Programs is a set of instructions made to control


behavior of the computer
A Language designed to write programs is a
programming language

Programming language

Pointers
Auto Memory-management

C VS. JAVA

Compilation
Types

C VS. JAVA

Object Oriented programming language

OOP fundamentals

Encapsulation
Abstraction
Polymorphism
Inheritance

You CAN learn JAVA without knowledge of c++

Are you Superstitious?

Hi! were Java

Java was born in 1991.

Patrick Naughton & James


Gosling

Object is an instance of a class.


Objects exists physically.

BITS

Class contains variables and objects


Class doesnt exist physically.

Method describes any functionality of the


object.

class A
{
int a;

//variable

public static void main(String args[])


{
System.out.println(hello world);

Classes start with capital letter


Variable names with small letter
Methods with small letter.

Name conventions

Hello
HelloWorld
F107
f107

Class names

int a
int A

Variable names

hello
Hello
Helloworld
HelloWorld

Method Names

Download and install jdk 1.7


Set path
Compile and run hello world program

Pre-Programming

Variables:

To store the data


Static varibles
Instance variables

Class A
{
int a = 12;
public static void main(String args[])
{
int a=13;
System.out.println(hello world!);
}

Class A
{
int a;

//variable

public static void main(String args[])


{
System.out.println(hello world);

You might also like