PROJECT ON
FACEBOOK ACCOUNT
KANIKA CHAUDHARY
CSE-C B.TECH IVth
E.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 LINE
ARGUMENTS-
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.
Core java for FACEBOOK ACCOUNT

Core java for FACEBOOK ACCOUNT

  • 1.
    PROJECT ON FACEBOOK ACCOUNT KANIKACHAUDHARY CSE-C B.TECH IVth E.N.- 120210
  • 2.
    CONTENTS  History ofJava  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
  • 3.
    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.
  • 4.
    FEATURES OF JAVA Platform Independent  Robust  Portable  Architecture Neutral  Secure
  • 5.
    Basic terms- Byte-code- • Highlyoptimized set of instructions JVM- • Run time environment JDK- • Java Development Kit  JRE- • It contains set of libraries
  • 6.
    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.
  • 7.
    Contd...  Having ‘baseclass’ and ‘derived class’. 3) Polymorphism-  Polymorphism is the ability of an object to take on many forms.
  • 8.
    COMMAND LINE ARGUMENTS- We canpass 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.
  • 9.
    Code as follows: Forexample : 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]); }}
  • 10.
    How to executethe code- javac “class_name”.java java “class_name” And the output will be there.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
    Connecting database tothe main method-
  • 16.
    You can accessfacebook by login into www.facebook.com and this is what you will see…
  • 17.
    Conclusion-  It’s asocial network- It’s a great way to keep in toch with friends and also new friends.  Facebook allows you to share information and photos.