Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
13-05-2013Rajavel DRajavel DJavaSummer Internship – 2013(Indian Institute of Technology Bombay)
Java Object-Oriented Platform independent Simple Secure Multi-threaded High PerformanceRajavel D Java IITB-CSE-Inter...
Basic terms Object - Objects have states and behaviors. Class - A class can be defined as a blue print thatdescribe the ...
Keep in Mind Case Sensitivity - Hello and hello would havedifferent meaning in Java. Class Names - For all class names t...
Simple Programclass HelloWorldApp {public static void main(String[] args) {HelloWorldApp hello = new HelloWorldApp();hello...
Modifiers and Variables Access Modifiers : default, public , protected, private Non-access Modifiers : final, abstract...
public static void main ? java program processing starts from the main()method. Public ? Static? Void?Rajavel D Java I...
Object Oriented Principles Abstraction Hiding the implementation (abstract class and interface) Encapsulation Wrapping...
Thread Create Thread by implements Runnable interface orextends Thread classRajavel D Java IITB-CSE-Internship 2013
Exception Handling Problem thatarises during theexecution of aprogram. try{} catch{} finally{}Rajavel D Java IITB-CSE-...
Some important concepts Constructor Package Multithreading Synchronized This keyword finallyRajavel D Java IITB-CSE-...
Any Doubts ???Rajavel D Java IITB-CSE-Internship 2013
References http://download.oracle.com/javase/tutorial/ http://www.tutorialspoint.com/java www.java2s.com/Tutorial/Java/...
Java
Upcoming SlideShare
Loading in …5
×

Java

640 views

Published on

Java Basic presentation

  • Be the first to comment

  • Be the first to like this

Java

  1. 1. 13-05-2013Rajavel DRajavel DJavaSummer Internship – 2013(Indian Institute of Technology Bombay)
  2. 2. Java Object-Oriented Platform independent Simple Secure Multi-threaded High PerformanceRajavel D Java IITB-CSE-Internship 2013
  3. 3. Basic terms Object - Objects have states and behaviors. Class - A class can be defined as a blue print thatdescribe the behaviors/states that object. Methods - A method is basically a behavior. Instance Variables - States of an objects, eachobject has its unique set of instance variables.Rajavel D Java IITB-CSE-Internship 2013
  4. 4. Keep in Mind Case Sensitivity - Hello and hello would havedifferent meaning in Java. Class Names - For all class names the first letter shouldbe in Upper Case.Example : class MyFirstJavaClass Method Names - All method names should start with aLower Case letter and each inner words first lettershould be in Upper Case.Example : public void myMethodName() Program File Name - Name of the program file shouldexactly match the class name.Rajavel D Java IITB-CSE-Internship 2013
  5. 5. Simple Programclass HelloWorldApp {public static void main(String[] args) {HelloWorldApp hello = new HelloWorldApp();hello.sayHello();}public void sayHello(){System.out.println(“Hello”);}}O/P : HelloRajavel D Java IITB-CSE-Internship 2013
  6. 6. Modifiers and Variables Access Modifiers : default, public , protected, private Non-access Modifiers : final, abstract, static, strictfp, synchronized and volatile Type of variables in Java: Local Variables Class Variables (Static Variables) Instance Variables (Non static variables)Rajavel D Java IITB-CSE-Internship 2013
  7. 7. public static void main ? java program processing starts from the main()method. Public ? Static? Void?Rajavel D Java IITB-CSE-Internship 2013
  8. 8. Object Oriented Principles Abstraction Hiding the implementation (abstract class and interface) Encapsulation Wrapping up of data into single unit. (data hiding) Inheritance Reusable the properties of existing class Polymorphism Overloading and OverridingRajavel D Java IITB-CSE-Internship 2013
  9. 9. Thread Create Thread by implements Runnable interface orextends Thread classRajavel D Java IITB-CSE-Internship 2013
  10. 10. Exception Handling Problem thatarises during theexecution of aprogram. try{} catch{} finally{}Rajavel D Java IITB-CSE-Internship 2013
  11. 11. Some important concepts Constructor Package Multithreading Synchronized This keyword finallyRajavel D Java IITB-CSE-Internship 2013
  12. 12. Any Doubts ???Rajavel D Java IITB-CSE-Internship 2013
  13. 13. References http://download.oracle.com/javase/tutorial/ http://www.tutorialspoint.com/java www.java2s.com/Tutorial/Java/CatalogJava.htmRajavel D Java IITB-CSE-Internship 2013

×