core java for facebook account

18
PROJECT ON FACEBOOK ACCOUNT KANIKA CHAUDHARY CSE-C B.TECH IVth E.N.- 120210

Upload: modygal

Post on 12-Apr-2017

286 views

Category:

Engineering


0 download

TRANSCRIPT

PROJECT ON

FACEBOOK ACCOUNT

KANIKA CHAUDHARYCSE-C B.TECH IVthE.N.- 120210

CONTENTS

History of Java Features of Java Basic terms Principle of OOPS Command Line Arguments Code as follows How to execute the code Project code Connecting database to main code

HISTORY OF JAVA

James Gosling, Mike Sheridan, and Patrick

Naughton initiated the Java language project in

June 1991.

Earlier it was named as OAK.

Java is a Object Oriented Programming

language.

FEATURES OF JAVA

Platform Independent

Robust

Portable

Architecture Neutral

Secure

Basic terms- Byte-code-• Highly optimized set of instructions

JVM-• Run time environment JDK- • Java Development Kit JRE-• It contains set of libraries

Principle of Oops-

1) Encapsulation-

Bind together code and data.

Also known as protective wrapper.

2) Inheritance-

One object acquires properties of another object.

‘Extend’ keyword is used.

Contd...

Having ‘base class’ and ‘derived class’.

3) Polymorphism-

Polymorphism is the ability of an object to take

on many forms.

COMMAND LINEARGUMENTS-

We can pass some values at the time of executing

java program from command line. These values

are passed to the main method as arguments.

Main method invocation by JVM.

Code as follows:For example : if we want to pass three names as command line

arguments.

Then the code will be as follows-

public static void main(String args[])

{

for(int i=0;i<3;i++)

{

System.out.println(args[i]);

}}

How to execute the code-

javac “class_name”.java

java “class_name”

And the output will be there.

Introduction on Facebook

PROJECT CODE-

CONTD..

After creating main method-

Connecting database to the main method-

You can access facebook by login into www.facebook.com and this is what you will see…

Conclusion-

It’s a social network- It’s a great way to keep in

toch with friends and also new friends.

Facebook allows you to share information and

photos.