Your SlideShare is downloading. ×
Mis Conceptions About The Tiny Java
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Mis Conceptions About The Tiny Java

650

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
650
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Mis-conceptions about the Java
    Presenter: Engineer Jokhio Salahuddin Kohistani 07CS24
    Object Oriented Programming
  • 2. Contents
    • My First Java Program
    • 3. Static and Non-Static
    • 4. Objects
    • 5. Interfaces
    • 6. Wrapper Classes
  • My First Java Program
    class MyClass{
    public static void main(String[ ] args){
    System.out.println(“Hello World”);
    }
    }
  • 7. Static & Non-Static
    class MyClass2{
    int me=6;
    public static void main(String [ ] args){
    System.out.println(me);
    }
    }
  • 8. Static & Non-Static
    class MyClass3
    static{
    System.out.println(“Hey! How is it Possible”);
    }
    }
  • 9. Objects
    class MyClass4{
    //Body
    }
    class MainMethod{
    p s v main(String[ ] a){
    MyClass4 myObj=new MyClass4();
    //other statements
    }
    }
  • 10. Objects
    class MainMethod{
    p s v main(String[ ] a){
    MyClass4 myObj=new MyClass4();
    MyClass4 myObj2=myObj;
    MyClass 4 myObj3=myObj;
    //other statements
    }
    }
    How Many Objects?
  • 11. Objects
    myObj3=null;
  • 12. Interfaces
    Collections of constants and abstract methods.
  • 13. Wrapper Classes
    Classes that allows you to define objects that encapsulates each of the data types.
    Each of the Basic type as equivalent defined classes.
    byte Byte
    short Short
    int Integer
    long Long
    float Float
    double Double
    character Character
    boolean Boolean
  • 14. Any Questions
    Thanks…

×