SlideShare uma empresa Scribd logo
1 de 28
Java: It’s OOP on Steroids*! Presented by: Milan a.k.amondodello ( Aah! Back into known territory! ) *STATUTORY WARNING: This presentation is not an attempt to popularize steroids. Steroids and more specifically drugs are injurious to health. One must never buy drugs. One should rather become a rockstar. Then you get them for free :P :D !
Topics (intended) to be covered OOP: A rrrrapid review C / C++ and now … err … Java? Java: The new kid on the block! Regular Feature: Some Gyaaan! What NEXT?
OOP: A quick look back
Hmm … so we meet again … 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
C, C++ and now Java? Stop throwing jargons at me please!
Why C? Why C++? Procedural Programming: C C + Classes + … = C++ Main problem: Lack of portability That’s primarily what Java builds upon …
Java is born …
Once upon a time… Started by Sun Inc. under codename OAK The Retransformation HotJava Built on the WORA paradigm
WORA: No it’s not a battle-cry! Stands for Write Once Read Anywhere Brainchild of James Gosling Stresses primarily on portability and strict adherence to specifications Enters JVM!
JVM: The Java Virtual Machine It’s Java’s own Interpreter Custom built for different platforms Just worry about your class file, Java takes care of the rest!
Architectural Layers
nuts-’n-bolts of a Java Program
The integral parts Header Files (Use import) Class Definition(s) main() within the class
A Java class format 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 	} }
Java ripped apart!
This comprises Java –  Variables/Constants/Arrays Arithmetic Expressions/Operators Control Flow Techniques Pointers/References (???) Methods Classes/Objects … … <This is only a glimpse … > !!!
Varrrrriables 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
Arithmetic Expressions 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
Control Flow Sequence Embedded in the structure Selection If ... Else  Switch Iteration For Do... While  While
Functions a.k.a Methods A small program in itself Self contained Input-process-output Function prototype Function definition Arguments/Parameters
Pointers ( ::fear::, still ?) Objects as references Call by Reference/Value Primitive datatypes – passed by value Objects – passed by reference Wrapper classes
Idiosyncrasies of Java(1 of 3) Case-sensitive Class Definitions do NOT end with a “;” No global variable concept No standalone main() No non-boolean value in conditional statements
Idiosyncrasies of Java(2 of 3) No structs, enumerations, unions No scope unary scope resolution operator “.” operator super keyword Data-types sizes are FIXED, independent of machine architecture
Idiosyncrasies of Java(3 of 3) Multiple inheritance NOT supported Exception handling typicality Treatment of ob1 = ob2 statements No destructors extends keyword
And now ... Yup, some Gyaan!
Do this to become a Java codewhiz! 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/getStarted/index.html
Your turn now … any questions?
Thanks (m/)!

Mais conteúdo relacionado

Mais procurados

Exception handling in java
Exception handling in javaException handling in java
Exception handling in javaravinderkaur165
 
Exception Handling In Java 15734
Exception Handling In Java 15734Exception Handling In Java 15734
Exception Handling In Java 15734madhurendra pandey
 
Week7 exception handling
Week7 exception handlingWeek7 exception handling
Week7 exception handlingAlpesh Oza
 
Understanding Exception Handling in .Net
Understanding Exception Handling in .NetUnderstanding Exception Handling in .Net
Understanding Exception Handling in .NetMindfire Solutions
 
14 exception handling
14 exception handling14 exception handling
14 exception handlingjigeno
 
The Many Faces of Swift Functions
The Many Faces of Swift FunctionsThe Many Faces of Swift Functions
The Many Faces of Swift FunctionsNatasha Murashev
 
Best Practices in Exception Handling
Best Practices in Exception HandlingBest Practices in Exception Handling
Best Practices in Exception HandlingLemi Orhan Ergin
 

Mais procurados (8)

Exception handling in java
Exception handling in javaException handling in java
Exception handling in java
 
Exception Handling In Java 15734
Exception Handling In Java 15734Exception Handling In Java 15734
Exception Handling In Java 15734
 
Week7 exception handling
Week7 exception handlingWeek7 exception handling
Week7 exception handling
 
Understanding Exception Handling in .Net
Understanding Exception Handling in .NetUnderstanding Exception Handling in .Net
Understanding Exception Handling in .Net
 
14 exception handling
14 exception handling14 exception handling
14 exception handling
 
The Many Faces of Swift Functions
The Many Faces of Swift FunctionsThe Many Faces of Swift Functions
The Many Faces of Swift Functions
 
D1 Overview of C# programming
D1 Overview of C# programmingD1 Overview of C# programming
D1 Overview of C# programming
 
Best Practices in Exception Handling
Best Practices in Exception HandlingBest Practices in Exception Handling
Best Practices in Exception Handling
 

Semelhante a Jumping Into Java Then!

Jumping Into Java Then!
Jumping Into Java Then!Jumping Into Java Then!
Jumping Into Java Then!mondodello
 
Functional programming with Java 8
Functional programming with Java 8Functional programming with Java 8
Functional programming with Java 8Talha Ocakçı
 
Programming with Java: the Basics
Programming with Java: the BasicsProgramming with Java: the Basics
Programming with Java: the BasicsJussi Pohjolainen
 
OOP Design & FP Design
OOP Design & FP DesignOOP Design & FP Design
OOP Design & FP DesignDiego Pacheco
 
How we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotHow we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotBaruch Sadogursky
 
How we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotHow we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotBaruch Sadogursky
 
Grooming with Groovy
Grooming with GroovyGrooming with Groovy
Grooming with GroovyDhaval Dalal
 
Amber and beyond: Java language changes
Amber and beyond: Java language changesAmber and beyond: Java language changes
Amber and beyond: Java language changesStephen Colebourne
 
Java 8 - Lambdas and much more
Java 8 - Lambdas and much moreJava 8 - Lambdas and much more
Java 8 - Lambdas and much moreAlin Pandichi
 
Learn To Code: Introduction to java
Learn To Code: Introduction to javaLearn To Code: Introduction to java
Learn To Code: Introduction to javaSadhanaParameswaran
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, androidi i
 
Java Intro
Java IntroJava Intro
Java Introbackdoor
 
Evolving The Java Language
Evolving The Java LanguageEvolving The Java Language
Evolving The Java LanguageQConLondon2008
 
Functional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritterFunctional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritterSimon Ritter
 
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...Baruch Sadogursky
 
Java script final presentation
Java script final presentationJava script final presentation
Java script final presentationAdhoura Academy
 

Semelhante a Jumping Into Java Then! (20)

Jumping Into Java Then!
Jumping Into Java Then!Jumping Into Java Then!
Jumping Into Java Then!
 
Functional programming with Java 8
Functional programming with Java 8Functional programming with Java 8
Functional programming with Java 8
 
Programming with Java: the Basics
Programming with Java: the BasicsProgramming with Java: the Basics
Programming with Java: the Basics
 
OOP Design & FP Design
OOP Design & FP DesignOOP Design & FP Design
OOP Design & FP Design
 
How we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotHow we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we got
 
How we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we gotHow we took our server side application to the cloud and liked what we got
How we took our server side application to the cloud and liked what we got
 
Grooming with Groovy
Grooming with GroovyGrooming with Groovy
Grooming with Groovy
 
Amber and beyond: Java language changes
Amber and beyond: Java language changesAmber and beyond: Java language changes
Amber and beyond: Java language changes
 
Core java
Core javaCore java
Core java
 
Java 8 - Lambdas and much more
Java 8 - Lambdas and much moreJava 8 - Lambdas and much more
Java 8 - Lambdas and much more
 
Learn To Code: Introduction to java
Learn To Code: Introduction to javaLearn To Code: Introduction to java
Learn To Code: Introduction to java
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, android
 
What is new in J2SE 5
What is new in J2SE 5What is new in J2SE 5
What is new in J2SE 5
 
Java Intro
Java IntroJava Intro
Java Intro
 
Evolving The Java Language
Evolving The Java LanguageEvolving The Java Language
Evolving The Java Language
 
Functional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritterFunctional programming with_jdk8-s_ritter
Functional programming with_jdk8-s_ritter
 
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...
Persisting Your Objects In The Database World @ AlphaCSP Professional OSS Con...
 
Java performance
Java performanceJava performance
Java performance
 
Java script final presentation
Java script final presentationJava script final presentation
Java script final presentation
 
Testing smells
Testing smellsTesting smells
Testing smells
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Jumping Into Java Then!

  • 1. Java: It’s OOP on Steroids*! Presented by: Milan a.k.amondodello ( Aah! Back into known territory! ) *STATUTORY WARNING: This presentation is not an attempt to popularize steroids. Steroids and more specifically drugs are injurious to health. One must never buy drugs. One should rather become a rockstar. Then you get them for free :P :D !
  • 2. Topics (intended) to be covered OOP: A rrrrapid review C / C++ and now … err … Java? Java: The new kid on the block! Regular Feature: Some Gyaaan! What NEXT?
  • 3. OOP: A quick look back
  • 4. Hmm … so we meet again … 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
  • 5. C, C++ and now Java? Stop throwing jargons at me please!
  • 6. Why C? Why C++? Procedural Programming: C C + Classes + … = C++ Main problem: Lack of portability That’s primarily what Java builds upon …
  • 8. Once upon a time… Started by Sun Inc. under codename OAK The Retransformation HotJava Built on the WORA paradigm
  • 9. WORA: No it’s not a battle-cry! Stands for Write Once Read Anywhere Brainchild of James Gosling Stresses primarily on portability and strict adherence to specifications Enters JVM!
  • 10. JVM: The Java Virtual Machine It’s Java’s own Interpreter Custom built for different platforms Just worry about your class file, Java takes care of the rest!
  • 12. nuts-’n-bolts of a Java Program
  • 13. The integral parts Header Files (Use import) Class Definition(s) main() within the class
  • 14. A Java class format 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 } }
  • 16. This comprises Java – Variables/Constants/Arrays Arithmetic Expressions/Operators Control Flow Techniques Pointers/References (???) Methods Classes/Objects … … <This is only a glimpse … > !!!
  • 17. Varrrrriables 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
  • 18. Arithmetic Expressions 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
  • 19. Control Flow Sequence Embedded in the structure Selection If ... Else Switch Iteration For Do... While While
  • 20. Functions a.k.a Methods A small program in itself Self contained Input-process-output Function prototype Function definition Arguments/Parameters
  • 21. Pointers ( ::fear::, still ?) Objects as references Call by Reference/Value Primitive datatypes – passed by value Objects – passed by reference Wrapper classes
  • 22. Idiosyncrasies of Java(1 of 3) Case-sensitive Class Definitions do NOT end with a “;” No global variable concept No standalone main() No non-boolean value in conditional statements
  • 23. Idiosyncrasies of Java(2 of 3) No structs, enumerations, unions No scope unary scope resolution operator “.” operator super keyword Data-types sizes are FIXED, independent of machine architecture
  • 24. Idiosyncrasies of Java(3 of 3) Multiple inheritance NOT supported Exception handling typicality Treatment of ob1 = ob2 statements No destructors extends keyword
  • 25. And now ... Yup, some Gyaan!
  • 26. Do this to become a Java codewhiz! 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/getStarted/index.html
  • 27. Your turn now … any questions?