Core java for FACEBOOK ACCOUNT
-
Upload
modygal -
Category
Engineering
-
view
286 -
download
0
Transcript of Core java for FACEBOOK ACCOUNT
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.
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]);
}}
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.