 OOP: A rrrrapid review
 C / C++ and now … err … Java?
 Java: The new kid on the block!
 Regular Feature: Some Gyaaan ...
   OOP is a relatively „new‟ programming paradigm
   Competes with Structured Programming
   Avoids REDUNDANCY, provide...
   Procedural Programming: C

   C + Classes + … = C++

   Main problem: Lack of portability

   That‟s primarily what...
   Started by Sun Inc. under codename OAK

   The Retransformation
     HotJava


   Built on the WORA paradigm
   Stands for Write Once Read Anywhere

   Brainchild of James Gosling

   Stresses primarily on portability and strict...
   It‟s Java‟s own Interpreter

   Custom built for different platforms

   Just worry about your class file, Java
    ...
Java Class File
Java Virtual Machine
Computing Architecture
   Header Files (Use import)

   Class Definition(s)

   main() within the class
Class <class name>
{
//datamembers
    <access modifiers> <data type> <variable
    name>
//function definitions
  <access...
   Variables/Constants/Arrays
   Arithmetic Expressions/Operators
   Control Flow Techniques
   Pointers/References (?...
 An element that varies
 Vary = change
 Contrast with CONSTANTS (Rock
  steady - do NOT change during
  program run)
 ...
 Rules involving variables, constants,
  operators etc.
 Always evaluate to a VALUE
 Can be used in a helluva innovativ...
   Sequence
     Embedded in the structure

   Selection
     If ... Else
     Switch

   Iteration
     For
     ...
   A small program in itself

   Self contained

   Input-process-output

   Function prototype

   Function definiti...
   Objects as references

   Call by Reference/Value

   Primitive datatypes – passed by value

   Objects – passed by...
   Case-sensitive

   Class Definitions do NOT end with a “;”

   No global variable concept

   No standalone main()
...
   No structs, enumerations, unions

   No scope unary scope resolution operator

   “.” operator

   super keyword

...
   Multiple inheritance NOT supported

   Exception handling typicality

   Treatment of ob1 = ob2 statements

   No d...
   Be Disciplined

   Be Regular

   Try and compete in online coding competitions

   Practice (Remember it makes a m...
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Jumping Into Java Then!
Upcoming SlideShare
Loading in...5
×

Jumping Into Java Then!

631

Published on

PDF version of the other presentation in my collection with the same name.

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

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

No notes for slide

Jumping Into Java Then!

  1. 1.  OOP: A rrrrapid review  C / C++ and now … err … Java?  Java: The new kid on the block!  Regular Feature: Some Gyaaan !  What NEXT?
  2. 2.  OOP is a relatively „new‟ programming paradigm  Competes with Structured Programming  Avoids REDUNDANCY, provides FLEXIBILITY  Involves lot of jargons  Modularity  Abstraction / Data Encapsulation / Info Hiding  Inheritance  Polymorphism
  3. 3.  Procedural Programming: C  C + Classes + … = C++  Main problem: Lack of portability  That‟s primarily what Java builds upon …
  4. 4.  Started by Sun Inc. under codename OAK  The Retransformation  HotJava  Built on the WORA paradigm
  5. 5.  Stands for Write Once Read Anywhere  Brainchild of James Gosling  Stresses primarily on portability and strict adherence to specifications  Enters JVM!
  6. 6.  It‟s Java‟s own Interpreter  Custom built for different platforms  Just worry about your class file, Java takes care of the rest!
  7. 7. Java Class File Java Virtual Machine Computing Architecture
  8. 8.  Header Files (Use import)  Class Definition(s)  main() within the class
  9. 9. Class <class name> { //datamembers <access modifiers> <data type> <variable name> //function definitions <access modifiers> <return type> <function name> (comma-separated parameter list) { body – of – the - function } }
  10. 10.  Variables/Constants/Arrays  Arithmetic Expressions/Operators  Control Flow Techniques  Pointers/References (???)  Methods  Classes/Objects  …  …  <This is only a glimpse … > !!!
  11. 11.  An element that varies  Vary = change  Contrast with CONSTANTS (Rock steady - do NOT change during program run)  8 types:  byte, short, int, long,  float, double,  boolean,  char
  12. 12.  Rules involving variables, constants, operators etc.  Always evaluate to a VALUE  Can be used in a helluva innovative ways  Master them and half the battle is one
  13. 13.  Sequence  Embedded in the structure  Selection  If ... Else  Switch  Iteration  For  Do... While  While
  14. 14.  A small program in itself  Self contained  Input-process-output  Function prototype  Function definition  Arguments/Parameters
  15. 15.  Objects as references  Call by Reference/Value  Primitive datatypes – passed by value  Objects – passed by reference  Wrapper classes
  16. 16.  Case-sensitive  Class Definitions do NOT end with a “;”  No global variable concept  No standalone main()  No non-boolean value in conditional statements
  17. 17.  No structs, enumerations, unions  No scope unary scope resolution operator  “.” operator  super keyword  Data-types sizes are FIXED, independent of machine architecture
  18. 18.  Multiple inheritance NOT supported  Exception handling typicality  Treatment of ob1 = ob2 statements  No destructors  extends keyword
  19. 19.  Be Disciplined  Be Regular  Try and compete in online coding competitions  Practice (Remember it makes a man perfect ... and works for women as well!)  Reference: http://java.sun.com/docs/books/tutorial/getS tarted/index.html

×