• Like
Upcoming SlideShare
Loading in...5


Uploaded on

Java Basic presentation

Java Basic presentation

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. 13-05-2013Rajavel DRajavel DJavaSummer Internship – 2013(Indian Institute of Technology Bombay)
  • 2. Java Object-Oriented Platform independent Simple Secure Multi-threaded High PerformanceRajavel D Java IITB-CSE-Internship 2013
  • 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. 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. 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. 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. public static void main ? java program processing starts from the main()method. Public ? Static? Void?Rajavel D Java IITB-CSE-Internship 2013
  • 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. Thread Create Thread by implements Runnable interface orextends Thread classRajavel D Java IITB-CSE-Internship 2013
  • 10. Exception Handling Problem thatarises during theexecution of aprogram. try{} catch{} finally{}Rajavel D Java IITB-CSE-Internship 2013
  • 11. Some important concepts Constructor Package Multithreading Synchronized This keyword finallyRajavel D Java IITB-CSE-Internship 2013
  • 12. Any Doubts ???Rajavel D Java IITB-CSE-Internship 2013
  • 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