SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
13-05-2013Rajavel DRajavel D
Java
Summer Internship – 2013
(Indian Institute of Technology Bombay)
Java
 Object-Oriented
 Platform independent
 Simple
 Secure
 Multi-threaded
 High Performance
Rajavel D Java IITB-CSE-Internship 2013
Basic terms
 Object - Objects have states and behaviors.
 Class - A class can be defined as a blue print that
describe the behaviors/states that object.
 Methods - A method is basically a behavior.
 Instance Variables - States of an objects, each
object has its unique set of instance variables.
Rajavel D Java IITB-CSE-Internship 2013
Keep in Mind
 Case Sensitivity - Hello and hello would have
different meaning in Java.
 Class Names - For all class names the first letter should
be in Upper Case.
Example : class MyFirstJavaClass
 Method Names - All method names should start with a
Lower Case letter and each inner word's first letter
should be in Upper Case.
Example : public void myMethodName()
 Program File Name - Name of the program file should
exactly match the class name.
Rajavel D Java IITB-CSE-Internship 2013
Simple Program
class HelloWorldApp {
public static void main(String[] args) {
HelloWorldApp hello = new HelloWorldApp();
hello.sayHello();
}
public void sayHello(){
System.out.println(“Hello”);
}
}
O/P : Hello
Rajavel D Java IITB-CSE-Internship 2013
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
public static void main ?
 java program processing starts from the main()
method.
 Public ?
 Static?
 Void?
Rajavel D Java IITB-CSE-Internship 2013
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 Overriding
Rajavel D Java IITB-CSE-Internship 2013
Thread
 Create Thread by implements Runnable interface or
extends Thread class
Rajavel D Java IITB-CSE-Internship 2013
Exception Handling
 Problem that
arises during the
execution of a
program.
 try{}
 catch{}
 finally{}
Rajavel D Java IITB-CSE-Internship 2013
Some important concepts
 Constructor
 Package
 Multithreading
 Synchronized
 This keyword
 finally
Rajavel D Java IITB-CSE-Internship 2013
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/CatalogJava.h
tm
Rajavel D Java IITB-CSE-Internship 2013

Weitere ähnliche Inhalte

Was ist angesagt?

Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]
Asfand Hassan
 
Java findamentals2
Java findamentals2Java findamentals2
Java findamentals2
Todor Kolev
 

Was ist angesagt? (17)

C++ unit-2-part-2
C++ unit-2-part-2C++ unit-2-part-2
C++ unit-2-part-2
 
Object Oriented Concepts in Real Projects
Object Oriented Concepts in Real ProjectsObject Oriented Concepts in Real Projects
Object Oriented Concepts in Real Projects
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Oops
OopsOops
Oops
 
Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]
 
Java essentials for hadoop
Java essentials for hadoopJava essentials for hadoop
Java essentials for hadoop
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
OOP in Java
OOP in JavaOOP in Java
OOP in Java
 
Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1
 
Java findamentals2
Java findamentals2Java findamentals2
Java findamentals2
 
Oops ppt
Oops pptOops ppt
Oops ppt
 
Unit 3 Java
Unit 3 JavaUnit 3 Java
Unit 3 Java
 
Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1 Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1
 
Java classes in karve nagar pune
Java classes in karve nagar puneJava classes in karve nagar pune
Java classes in karve nagar pune
 
Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in java
 
2. Basics of Java
2. Basics of Java2. Basics of Java
2. Basics of Java
 

Ähnlich wie Java

Ähnlich wie Java (20)

DAY_1.1.pptx
DAY_1.1.pptxDAY_1.1.pptx
DAY_1.1.pptx
 
Basics of Java
Basics of JavaBasics of Java
Basics of Java
 
java
java java
java
 
Java essentials for hadoop
Java essentials for hadoopJava essentials for hadoop
Java essentials for hadoop
 
NUS Hackers Club Mar 21 - Whats New in JavaSE 8?
NUS Hackers Club Mar 21 - Whats New in JavaSE 8?NUS Hackers Club Mar 21 - Whats New in JavaSE 8?
NUS Hackers Club Mar 21 - Whats New in JavaSE 8?
 
Java basics
Java basicsJava basics
Java basics
 
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
Internet and Web Technology (CLASS-15) [JAVA Basics] | NIC/NIELIT Web Technol...
 
Dev labs alliance top 20 basic java interview questions for sdet
Dev labs alliance top 20 basic java interview questions for sdetDev labs alliance top 20 basic java interview questions for sdet
Dev labs alliance top 20 basic java interview questions for sdet
 
Java basic syntax
Java basic syntaxJava basic syntax
Java basic syntax
 
Java basic-syntax
Java basic-syntaxJava basic-syntax
Java basic-syntax
 
Java 9 features
Java 9 featuresJava 9 features
Java 9 features
 
Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)Mcs 024 assignment solution (2020-21)
Mcs 024 assignment solution (2020-21)
 
Viva file
Viva fileViva file
Viva file
 
Top 20 basic java interview questions for SDET
Top 20 basic java interview questions for SDETTop 20 basic java interview questions for SDET
Top 20 basic java interview questions for SDET
 
Dev labs alliance top 20 basic java interview question for sdet
Dev labs alliance top 20 basic java interview question for sdetDev labs alliance top 20 basic java interview question for sdet
Dev labs alliance top 20 basic java interview question for sdet
 
java beans
java beansjava beans
java beans
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
 
java basic .pdf
java basic .pdfjava basic .pdf
java basic .pdf
 
Classes And Methods
Classes And MethodsClasses And Methods
Classes And Methods
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Kürzlich hochgeladen

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Kürzlich hochgeladen (20)

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 

Java

  • 1. 13-05-2013Rajavel DRajavel D Java Summer Internship – 2013 (Indian Institute of Technology Bombay)
  • 2. Java  Object-Oriented  Platform independent  Simple  Secure  Multi-threaded  High Performance Rajavel D Java IITB-CSE-Internship 2013
  • 3.
  • 4. Basic terms  Object - Objects have states and behaviors.  Class - A class can be defined as a blue print that describe the behaviors/states that object.  Methods - A method is basically a behavior.  Instance Variables - States of an objects, each object has its unique set of instance variables. Rajavel D Java IITB-CSE-Internship 2013
  • 5. Keep in Mind  Case Sensitivity - Hello and hello would have different meaning in Java.  Class Names - For all class names the first letter should be in Upper Case. Example : class MyFirstJavaClass  Method Names - All method names should start with a Lower Case letter and each inner word's first letter should be in Upper Case. Example : public void myMethodName()  Program File Name - Name of the program file should exactly match the class name. Rajavel D Java IITB-CSE-Internship 2013
  • 6. Simple Program class HelloWorldApp { public static void main(String[] args) { HelloWorldApp hello = new HelloWorldApp(); hello.sayHello(); } public void sayHello(){ System.out.println(“Hello”); } } O/P : Hello Rajavel D Java IITB-CSE-Internship 2013
  • 7. 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
  • 8. public static void main ?  java program processing starts from the main() method.  Public ?  Static?  Void? Rajavel D Java IITB-CSE-Internship 2013
  • 9. 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 Overriding Rajavel D Java IITB-CSE-Internship 2013
  • 10. Thread  Create Thread by implements Runnable interface or extends Thread class Rajavel D Java IITB-CSE-Internship 2013
  • 11. Exception Handling  Problem that arises during the execution of a program.  try{}  catch{}  finally{} Rajavel D Java IITB-CSE-Internship 2013
  • 12. Some important concepts  Constructor  Package  Multithreading  Synchronized  This keyword  finally Rajavel D Java IITB-CSE-Internship 2013
  • 13. Any Doubts ??? Rajavel D Java IITB-CSE-Internship 2013
  • 14. References  http://download.oracle.com/javase/tutorial/  http://www.tutorialspoint.com/java  www.java2s.com/Tutorial/Java/CatalogJava.h tm Rajavel D Java IITB-CSE-Internship 2013