SlideShare a Scribd company logo
Java 101 
A primer on the most used development platform in the world 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 2 
About the presenter 
• James Weaver 
– Java Technology Ambassador 
– Oracle Corporation 
– Twitter: @JavaFXpert 
– Email: james.weaver@oracle.com
About the presenter 
Author of several Java/JavaFX books 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
What is Java? 
4 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
What is Java? 
5 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Java - Computer Science 
According to Wikipedia 
• Java (programming language), an object-oriented high-level programming language 
• Java (software platform), a technology developed by Sun Microsystems for machine-independent 
6 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
software 
– Java Platform, Standard Edition, targets desktop environment 
– Java Platform, Enterprise Edition, targets server environment 
– Java Platform, Micro Edition, targets mobile devices and embedded systems 
– Java Card, targets smart cards and other small memory footprint devices 
– Java Class Library, a collection of reusable pieces of software that software developers can use in their 
software 
– Java Development Kit (JDK), a software bundle from Sun Microsystems aimed at Java developers 
– Java Virtual Machine (JVM), part of the Java Platform that is responsible for running software created with 
Java 
• Java applet, allows software to run in web browers, and is accessible on most PCs 
• JavaScript, a web language with no direct relationship to the Java platform
Java 
Programming Language 
public class HelloWorld 
{ 
7 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
public static void main(String args[]) 
{ 
System.out.println("Hello World!"); 
} 
}
Life of Java Program 
HelloWorld.java 
8 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
javac 
HeHlleolWlooWrlodr.lcdl.ajasrs 
Java Virtual 
Machine
Java is Everywhere! 
9 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Java Virtual Machine 
• Software that runs Java bytecode 
10 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Java Virtual Machine 
Other Advantages of JRE 
Without changing anything or redeploying your app get: 
• Performance Improvements 
• Security Updates 
• New platforms support 
• Enhanced Monitoring Capabilities 
11 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
12 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
Developers Love Java!
13 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
Java Development Kit 
(JDK) Java Runtime Environment 
(JRE) 
JDK and JRE 
javac 
Java Virtual 
Machine 
Standard 
Libraries 
Other 
Developer 
Tools
Integrated Development Environments 
Choice is good 
• Several options for Integrated Development Environment 
– Commercial and Free products available 
14 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Great Performance 
• Performance was not a goal for initial release (15+years 
ago) but… 
• Now performance at par with a well written native 
language 
• Much better than a poorly written native app (and its 
much easier to write a good program in Java) 
15 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
You can use Java (VM) if you don’t like Java 
Many other JVM languages out there and growing 
• Lots of the advantages, just use another JVM 
language and you are still part of the "family” 
16 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Easy to deploy 
17 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
• Oracle distributes and updates the runtime on desktops, 
you can use applet or webstart to get your program 
launched from a website. 
• Packager creates self-contained apps and installers for 
various platforms.
Java History 
18 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
1.1 
• 1997 
• JDBC 
1.3 
• 2000 
• Hotspot 
5.0 
• 2004 
• Generics 
7 
• 2011 
• Oracle Stewardship 
1.0 
• 1996 
1.2 
• 1998 
• Collections 
1.4 
• 2002 
• JCP 
6 
• 2006 
• JVMTI
Improve Contended Locking 
DocTree API 
Generalized Target-Type Inference 
19 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
19 
Lambda (JSR 335) 
Enhanced Verification Errors 
Remove the Permanent Generation 
Date/Time API (JSR 310) 
Repeating Annotations 
Configurable Secure-Random Number Generation 
Type Annotations (JSR 308) 
Compact Profiles 
Lambda-Form Representation for Method Handles 
Parallel Array Sorting 
Bulk Data Operations 
Unicode 6.2 
Base64 
Prepare for Modularization 
Parameter Names 
TLS Server Name Indication 
Java 8 
Nashorn 
Fence Intrinsics 
HTTP URL Permissions 
Limited doPrivileged
JDK 8 - Highlights 
• Lambda (AKA Closures) 
– Largest update to the Java Language ever 
• 10-30% Performance Improvement “normal” without 
changing code for multicore systems/programs 
• New APIs like Date and Time 
• Nashorn – JavaScript engine for JVM 
• Java Mission Control in JDK 
20 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
© 2014
Lambda Expressions 
Some Details 
• Lambda expressions represent anonymous functions 
– Like a method, has a typed argument list, a return type, a set of 
thrown exceptions, and a body 
– Not associated with a class 
• We now have parameterized behaviour, not just values 
double highestScore = students.stream(). 
21 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
filter(Student s -> s.getGradYear() == 2011) 
mapToDouble(Student s -> s.getScore()) 
max(); 
What 
How
New graphics stack - JavaFX 
22 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
JavaFX 8 
3D Support 
• Predefined shapes 
– Box 
– Cylinder 
– Sphere 
• User-defined shapes 
– TriangleMesh, MeshView 
• PhongMaterial 
• Lighting 
• Cameras 
23 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
24 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
24 
Creating Primitive Shapes and Materials
Using Java Mission Control 
Another cool feature of Java SE Advanced 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Built for monitoring, profiling and troubleshooting Java 
applications, Java Mission Control consists of: 
• JMX Console for monitoring JVM and application in real time 
• Java Flight Recorder for collecting data about JVM and application 
• Optional tools via plug-ins (e.g. heap dump analysis, DTrace recording) 
26 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
2 
JVM 
Java Mission Control 
JMX Agent 
MBean Server 
VM Instrumentation App Instrumentation
Fun Facts about Flight Recorder: 
• Almost unnoticeable impact on the performance of a Java application 
running in the JVM (overhead is usually well below 1%) 
• High-performance recording engine is built directly into the runtime 
• Two JVM startup flags must be enabled on the JVM for which you want to 
do flight recordings: 
27 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
2 
-XX:+UnlockCommercialFeatures 
-XX:+FlightRecorder
28 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
Architects 
Love Java
Its Huge, really huge! 
• 97% of enterprise desktops run Java 
• 1 billion Java downloads each year 
• 9 million developers worldwide 
• #1 programming language 
• More than 3 billion devices are powered by Java 
technology 
29 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Open Standard 
30 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
• Java Community Process (JCP) established in 1998 
• Establishes Standard Technical Specifications 
• Uses Java Specification Requests (JSR) 
– Specification 
– Reference Implementation 
– Technology Compatibility Kit (TCK)
Open Standard – 
What it means to you 
• No vendor lock-in 
– Choose amongst many 
– Or go Open Source 
• Third-party Java API libraries 
exist for virtually any purpose 
• OpenJDK contributors 
welcomed 
31 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
32 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
Business People 
Love Java
Free (Gratis) 
No license cost for use in general purpose computers 
• Lots of great goodness and updates available to the 
world for no charge 
• Deploy in as many servers and desktops as you want 
without paying anything 
33 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Competition Drives Innovation 
JVM Performance improves continuously 
• Collaborators on the Specification 
• Competitors on the implementation 
34 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
WORA 
Write once, run anywhere 
• Same skills for mobile, server, client, and even 
embedded 
35 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Support and extra tools available 
• Enterprise-grade support with long support timeline 
available from Oracle 
• Additional enterprise and advanced tools available for 
licensing from Oracle: Java Advanced and Java Suite. 
• Active developer community enables finding help online 
for free if you don't want to purchase support 
36 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Backed by Oracle 
37 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved. 
• Oracle had a vested interest in Java long before it 
acquired Sun 
– We won’t -can’t- let it fail 
• Resources at http://oracle.com/java8
38 Copyright © 2011, Oracle and/or its affiliates. All rights 
reserved.
Safe Harbor Statement 
The preceding is intended to outline our general product direction. It is intended for 
information purposes only, and may not be incorporated into any contract. It is not a 
commitment to deliver any material, code, or functionality, and should not be relied upon 
in making purchasing decisions. The development, release, and timing of any features or 
functionality described for Oracle’s products remains at the sole discretion of Oracle. 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
39
Java 101 
A primer on the most used development platform in the world 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Ad

More Related Content

What's hot (20)

JavaFX 2 Using the Spring Framework
JavaFX 2 Using the Spring FrameworkJavaFX 2 Using the Spring Framework
JavaFX 2 Using the Spring Framework
Stephen Chin
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
Hitesh-Java
 
Introduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry PiIntroduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry Pi
Bruno Borges
 
Deep Learning for Java Developer - Getting Started
Deep Learning for Java Developer - Getting StartedDeep Learning for Java Developer - Getting Started
Deep Learning for Java Developer - Getting Started
Suyash Joshi
 
Oracle Keynote from JMagghreb 2014
Oracle Keynote from JMagghreb 2014Oracle Keynote from JMagghreb 2014
Oracle Keynote from JMagghreb 2014
Simon Ritter
 
How to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based MicroservicesHow to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based Microservices
Pavel Bucek
 
Project Jigsaw in JDK 9: Modularity Comes To Java
Project Jigsaw in JDK 9: Modularity Comes To JavaProject Jigsaw in JDK 9: Modularity Comes To Java
Project Jigsaw in JDK 9: Modularity Comes To Java
C4Media
 
Le Tour de xUnit
Le Tour de xUnitLe Tour de xUnit
Le Tour de xUnit
Abdelmonaim Remani
 
The Economies of Scaling Software
The Economies of Scaling SoftwareThe Economies of Scaling Software
The Economies of Scaling Software
Abdelmonaim Remani
 
Core java
Core javaCore java
Core java
Shivaraj R
 
The Amazing and Elegant PL/SQL Function Result Cache
The Amazing and Elegant PL/SQL Function Result CacheThe Amazing and Elegant PL/SQL Function Result Cache
The Amazing and Elegant PL/SQL Function Result Cache
Steven Feuerstein
 
Apache Harmony: An Open Innovation
Apache Harmony: An Open InnovationApache Harmony: An Open Innovation
Apache Harmony: An Open Innovation
Tim Ellison
 
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute InfodeckServlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Edward Burns
 
JSONB introduction and comparison with other frameworks
JSONB introduction and comparison with other frameworksJSONB introduction and comparison with other frameworks
JSONB introduction and comparison with other frameworks
Dmitry Kornilov
 
Turbocharge SQL Performance in PL/SQL with Bulk Processing
Turbocharge SQL Performance in PL/SQL with Bulk ProcessingTurbocharge SQL Performance in PL/SQL with Bulk Processing
Turbocharge SQL Performance in PL/SQL with Bulk Processing
Steven Feuerstein
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
Edward Burns
 
Building Large Java Projects Faster: Multicore javac and Makefile integration
Building Large Java Projects Faster: Multicore javac and Makefile integrationBuilding Large Java Projects Faster: Multicore javac and Makefile integration
Building Large Java Projects Faster: Multicore javac and Makefile integration
Fredrik Öhrström
 
Java 8
Java 8Java 8
Java 8
jclingan
 
Is An Agile Standard Possible For Java?
Is An Agile Standard Possible For Java?Is An Agile Standard Possible For Java?
Is An Agile Standard Possible For Java?
Simon Ritter
 
1 .java basic
1 .java basic1 .java basic
1 .java basic
Indu Sharma Bhardwaj
 
JavaFX 2 Using the Spring Framework
JavaFX 2 Using the Spring FrameworkJavaFX 2 Using the Spring Framework
JavaFX 2 Using the Spring Framework
Stephen Chin
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
Hitesh-Java
 
Introduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry PiIntroduction to JavaFX on Raspberry Pi
Introduction to JavaFX on Raspberry Pi
Bruno Borges
 
Deep Learning for Java Developer - Getting Started
Deep Learning for Java Developer - Getting StartedDeep Learning for Java Developer - Getting Started
Deep Learning for Java Developer - Getting Started
Suyash Joshi
 
Oracle Keynote from JMagghreb 2014
Oracle Keynote from JMagghreb 2014Oracle Keynote from JMagghreb 2014
Oracle Keynote from JMagghreb 2014
Simon Ritter
 
How to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based MicroservicesHow to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based Microservices
Pavel Bucek
 
Project Jigsaw in JDK 9: Modularity Comes To Java
Project Jigsaw in JDK 9: Modularity Comes To JavaProject Jigsaw in JDK 9: Modularity Comes To Java
Project Jigsaw in JDK 9: Modularity Comes To Java
C4Media
 
The Economies of Scaling Software
The Economies of Scaling SoftwareThe Economies of Scaling Software
The Economies of Scaling Software
Abdelmonaim Remani
 
The Amazing and Elegant PL/SQL Function Result Cache
The Amazing and Elegant PL/SQL Function Result CacheThe Amazing and Elegant PL/SQL Function Result Cache
The Amazing and Elegant PL/SQL Function Result Cache
Steven Feuerstein
 
Apache Harmony: An Open Innovation
Apache Harmony: An Open InnovationApache Harmony: An Open Innovation
Apache Harmony: An Open Innovation
Tim Ellison
 
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute InfodeckServlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Edward Burns
 
JSONB introduction and comparison with other frameworks
JSONB introduction and comparison with other frameworksJSONB introduction and comparison with other frameworks
JSONB introduction and comparison with other frameworks
Dmitry Kornilov
 
Turbocharge SQL Performance in PL/SQL with Bulk Processing
Turbocharge SQL Performance in PL/SQL with Bulk ProcessingTurbocharge SQL Performance in PL/SQL with Bulk Processing
Turbocharge SQL Performance in PL/SQL with Bulk Processing
Steven Feuerstein
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
Edward Burns
 
Building Large Java Projects Faster: Multicore javac and Makefile integration
Building Large Java Projects Faster: Multicore javac and Makefile integrationBuilding Large Java Projects Faster: Multicore javac and Makefile integration
Building Large Java Projects Faster: Multicore javac and Makefile integration
Fredrik Öhrström
 
Is An Agile Standard Possible For Java?
Is An Agile Standard Possible For Java?Is An Agile Standard Possible For Java?
Is An Agile Standard Possible For Java?
Simon Ritter
 

Similar to Java 101 (20)

JDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDKJDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDK
Wolfgang Weigend
 
Serverless Java - Challenges and Triumphs
Serverless Java - Challenges and TriumphsServerless Java - Challenges and Triumphs
Serverless Java - Challenges and Triumphs
David Delabassee
 
Java 2012 conference keynote - Java Strategy & Roadmap - WebLogic & GlassFish...
Java 2012 conference keynote - Java Strategy & Roadmap - WebLogic & GlassFish...Java 2012 conference keynote - Java Strategy & Roadmap - WebLogic & GlassFish...
Java 2012 conference keynote - Java Strategy & Roadmap - WebLogic & GlassFish...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
JDK versions and OpenJDK
JDK versions and OpenJDKJDK versions and OpenJDK
JDK versions and OpenJDK
Wolfgang Weigend
 
JDK 10 Java Module System
JDK 10 Java Module SystemJDK 10 Java Module System
JDK 10 Java Module System
Wolfgang Weigend
 
Java (Part 2) unit 1
Java (Part 2) unit 1Java (Part 2) unit 1
Java (Part 2) unit 1
Dr. SURBHI SAROHA
 
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
GlobalLogic Ukraine
 
Serverless Java Challenges & Triumphs
Serverless Java Challenges & TriumphsServerless Java Challenges & Triumphs
Serverless Java Challenges & Triumphs
David Delabassee
 
It's a jdk jungle out there - JDK 11 and OpenJDK 11
It's a jdk jungle out there - JDK 11 and OpenJDK 11It's a jdk jungle out there - JDK 11 and OpenJDK 11
It's a jdk jungle out there - JDK 11 and OpenJDK 11
Wolfgang Weigend
 
Introducing Java 8
Introducing Java 8Introducing Java 8
Introducing Java 8
PT.JUG
 
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFXMigrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
Bruno Borges
 
DesktopApps.pptx
DesktopApps.pptxDesktopApps.pptx
DesktopApps.pptx
ssusera47413
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
YounasKhan542109
 
1. Java Project Guidance for engineering
1. Java Project Guidance for engineering1. Java Project Guidance for engineering
1. Java Project Guidance for engineering
vyshukodumuri
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Krunali Gandhi
 
Coding from Application Container Cloud to Oracle JET
Coding from Application Container Cloud to Oracle JETCoding from Application Container Cloud to Oracle JET
Coding from Application Container Cloud to Oracle JET
Geertjan Wielenga
 
Introduction to Java Micro Edition (ME) 8
Introduction to Java Micro Edition (ME) 8Introduction to Java Micro Edition (ME) 8
Introduction to Java Micro Edition (ME) 8
terrencebarr
 
Oracle JET, with JET Mobile Content
Oracle JET, with JET Mobile ContentOracle JET, with JET Mobile Content
Oracle JET, with JET Mobile Content
Geertjan Wielenga
 
MWLUG - Universal Java
MWLUG  -  Universal JavaMWLUG  -  Universal Java
MWLUG - Universal Java
Philippe Riand
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
sandeep54552
 
JDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDKJDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDK
Wolfgang Weigend
 
Serverless Java - Challenges and Triumphs
Serverless Java - Challenges and TriumphsServerless Java - Challenges and Triumphs
Serverless Java - Challenges and Triumphs
David Delabassee
 
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
Java Webinar #12: "Java Versions and Features: Since JDK 8 to 16"
GlobalLogic Ukraine
 
Serverless Java Challenges & Triumphs
Serverless Java Challenges & TriumphsServerless Java Challenges & Triumphs
Serverless Java Challenges & Triumphs
David Delabassee
 
It's a jdk jungle out there - JDK 11 and OpenJDK 11
It's a jdk jungle out there - JDK 11 and OpenJDK 11It's a jdk jungle out there - JDK 11 and OpenJDK 11
It's a jdk jungle out there - JDK 11 and OpenJDK 11
Wolfgang Weigend
 
Introducing Java 8
Introducing Java 8Introducing Java 8
Introducing Java 8
PT.JUG
 
Migrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFXMigrating From Applets to Java Desktop Apps in JavaFX
Migrating From Applets to Java Desktop Apps in JavaFX
Bruno Borges
 
1. Java Project Guidance for engineering
1. Java Project Guidance for engineering1. Java Project Guidance for engineering
1. Java Project Guidance for engineering
vyshukodumuri
 
Coding from Application Container Cloud to Oracle JET
Coding from Application Container Cloud to Oracle JETCoding from Application Container Cloud to Oracle JET
Coding from Application Container Cloud to Oracle JET
Geertjan Wielenga
 
Introduction to Java Micro Edition (ME) 8
Introduction to Java Micro Edition (ME) 8Introduction to Java Micro Edition (ME) 8
Introduction to Java Micro Edition (ME) 8
terrencebarr
 
Oracle JET, with JET Mobile Content
Oracle JET, with JET Mobile ContentOracle JET, with JET Mobile Content
Oracle JET, with JET Mobile Content
Geertjan Wielenga
 
MWLUG - Universal Java
MWLUG  -  Universal JavaMWLUG  -  Universal Java
MWLUG - Universal Java
Philippe Riand
 
Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
sandeep54552
 
Ad

More from javafxpert (7)

Machine Learning Exposed!
Machine Learning Exposed!Machine Learning Exposed!
Machine Learning Exposed!
javafxpert
 
Raspberry Pi with Java 8
Raspberry Pi with Java 8Raspberry Pi with Java 8
Raspberry Pi with Java 8
javafxpert
 
Autonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoTAutonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoT
javafxpert
 
J-Fall 2014 Community Keynote by Oracle
J-Fall 2014 Community Keynote by OracleJ-Fall 2014 Community Keynote by Oracle
J-Fall 2014 Community Keynote by Oracle
javafxpert
 
What's New in Java 8
What's New in Java 8What's New in Java 8
What's New in Java 8
javafxpert
 
Scratching the Surface with JavaFX
Scratching the Surface with JavaFXScratching the Surface with JavaFX
Scratching the Surface with JavaFX
javafxpert
 
Asean dev-days-slides
Asean dev-days-slidesAsean dev-days-slides
Asean dev-days-slides
javafxpert
 
Machine Learning Exposed!
Machine Learning Exposed!Machine Learning Exposed!
Machine Learning Exposed!
javafxpert
 
Raspberry Pi with Java 8
Raspberry Pi with Java 8Raspberry Pi with Java 8
Raspberry Pi with Java 8
javafxpert
 
Autonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoTAutonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoT
javafxpert
 
J-Fall 2014 Community Keynote by Oracle
J-Fall 2014 Community Keynote by OracleJ-Fall 2014 Community Keynote by Oracle
J-Fall 2014 Community Keynote by Oracle
javafxpert
 
What's New in Java 8
What's New in Java 8What's New in Java 8
What's New in Java 8
javafxpert
 
Scratching the Surface with JavaFX
Scratching the Surface with JavaFXScratching the Surface with JavaFX
Scratching the Surface with JavaFX
javafxpert
 
Asean dev-days-slides
Asean dev-days-slidesAsean dev-days-slides
Asean dev-days-slides
javafxpert
 
Ad

Recently uploaded (20)

How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRYLEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
LEARN SEO AND INCREASE YOUR KNOWLDGE IN SOFTWARE INDUSTRY
NidaFarooq10
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 

Java 101

  • 1. Java 101 A primer on the most used development platform in the world Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 2 About the presenter • James Weaver – Java Technology Ambassador – Oracle Corporation – Twitter: @JavaFXpert – Email: [email protected]
  • 3. About the presenter Author of several Java/JavaFX books Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 4. What is Java? 4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 5. What is Java? 5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 6. Java - Computer Science According to Wikipedia • Java (programming language), an object-oriented high-level programming language • Java (software platform), a technology developed by Sun Microsystems for machine-independent 6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. software – Java Platform, Standard Edition, targets desktop environment – Java Platform, Enterprise Edition, targets server environment – Java Platform, Micro Edition, targets mobile devices and embedded systems – Java Card, targets smart cards and other small memory footprint devices – Java Class Library, a collection of reusable pieces of software that software developers can use in their software – Java Development Kit (JDK), a software bundle from Sun Microsystems aimed at Java developers – Java Virtual Machine (JVM), part of the Java Platform that is responsible for running software created with Java • Java applet, allows software to run in web browers, and is accessible on most PCs • JavaScript, a web language with no direct relationship to the Java platform
  • 7. Java Programming Language public class HelloWorld { 7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. public static void main(String args[]) { System.out.println("Hello World!"); } }
  • 8. Life of Java Program HelloWorld.java 8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. javac HeHlleolWlooWrlodr.lcdl.ajasrs Java Virtual Machine
  • 9. Java is Everywhere! 9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 10. Java Virtual Machine • Software that runs Java bytecode 10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 11. Java Virtual Machine Other Advantages of JRE Without changing anything or redeploying your app get: • Performance Improvements • Security Updates • New platforms support • Enhanced Monitoring Capabilities 11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 12. 12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Developers Love Java!
  • 13. 13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Java Development Kit (JDK) Java Runtime Environment (JRE) JDK and JRE javac Java Virtual Machine Standard Libraries Other Developer Tools
  • 14. Integrated Development Environments Choice is good • Several options for Integrated Development Environment – Commercial and Free products available 14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 15. Great Performance • Performance was not a goal for initial release (15+years ago) but… • Now performance at par with a well written native language • Much better than a poorly written native app (and its much easier to write a good program in Java) 15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 16. You can use Java (VM) if you don’t like Java Many other JVM languages out there and growing • Lots of the advantages, just use another JVM language and you are still part of the "family” 16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 17. Easy to deploy 17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. • Oracle distributes and updates the runtime on desktops, you can use applet or webstart to get your program launched from a website. • Packager creates self-contained apps and installers for various platforms.
  • 18. Java History 18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 1.1 • 1997 • JDBC 1.3 • 2000 • Hotspot 5.0 • 2004 • Generics 7 • 2011 • Oracle Stewardship 1.0 • 1996 1.2 • 1998 • Collections 1.4 • 2002 • JCP 6 • 2006 • JVMTI
  • 19. Improve Contended Locking DocTree API Generalized Target-Type Inference 19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 19 Lambda (JSR 335) Enhanced Verification Errors Remove the Permanent Generation Date/Time API (JSR 310) Repeating Annotations Configurable Secure-Random Number Generation Type Annotations (JSR 308) Compact Profiles Lambda-Form Representation for Method Handles Parallel Array Sorting Bulk Data Operations Unicode 6.2 Base64 Prepare for Modularization Parameter Names TLS Server Name Indication Java 8 Nashorn Fence Intrinsics HTTP URL Permissions Limited doPrivileged
  • 20. JDK 8 - Highlights • Lambda (AKA Closures) – Largest update to the Java Language ever • 10-30% Performance Improvement “normal” without changing code for multicore systems/programs • New APIs like Date and Time • Nashorn – JavaScript engine for JVM • Java Mission Control in JDK 20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. © 2014
  • 21. Lambda Expressions Some Details • Lambda expressions represent anonymous functions – Like a method, has a typed argument list, a return type, a set of thrown exceptions, and a body – Not associated with a class • We now have parameterized behaviour, not just values double highestScore = students.stream(). 21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. filter(Student s -> s.getGradYear() == 2011) mapToDouble(Student s -> s.getScore()) max(); What How
  • 22. New graphics stack - JavaFX 22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 23. JavaFX 8 3D Support • Predefined shapes – Box – Cylinder – Sphere • User-defined shapes – TriangleMesh, MeshView • PhongMaterial • Lighting • Cameras 23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 24. 24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 24 Creating Primitive Shapes and Materials
  • 25. Using Java Mission Control Another cool feature of Java SE Advanced Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 26. Built for monitoring, profiling and troubleshooting Java applications, Java Mission Control consists of: • JMX Console for monitoring JVM and application in real time • Java Flight Recorder for collecting data about JVM and application • Optional tools via plug-ins (e.g. heap dump analysis, DTrace recording) 26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 2 JVM Java Mission Control JMX Agent MBean Server VM Instrumentation App Instrumentation
  • 27. Fun Facts about Flight Recorder: • Almost unnoticeable impact on the performance of a Java application running in the JVM (overhead is usually well below 1%) • High-performance recording engine is built directly into the runtime • Two JVM startup flags must be enabled on the JVM for which you want to do flight recordings: 27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 2 -XX:+UnlockCommercialFeatures -XX:+FlightRecorder
  • 28. 28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Architects Love Java
  • 29. Its Huge, really huge! • 97% of enterprise desktops run Java • 1 billion Java downloads each year • 9 million developers worldwide • #1 programming language • More than 3 billion devices are powered by Java technology 29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 30. Open Standard 30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. • Java Community Process (JCP) established in 1998 • Establishes Standard Technical Specifications • Uses Java Specification Requests (JSR) – Specification – Reference Implementation – Technology Compatibility Kit (TCK)
  • 31. Open Standard – What it means to you • No vendor lock-in – Choose amongst many – Or go Open Source • Third-party Java API libraries exist for virtually any purpose • OpenJDK contributors welcomed 31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 32. 32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Business People Love Java
  • 33. Free (Gratis) No license cost for use in general purpose computers • Lots of great goodness and updates available to the world for no charge • Deploy in as many servers and desktops as you want without paying anything 33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 34. Competition Drives Innovation JVM Performance improves continuously • Collaborators on the Specification • Competitors on the implementation 34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 35. WORA Write once, run anywhere • Same skills for mobile, server, client, and even embedded 35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 36. Support and extra tools available • Enterprise-grade support with long support timeline available from Oracle • Additional enterprise and advanced tools available for licensing from Oracle: Java Advanced and Java Suite. • Active developer community enables finding help online for free if you don't want to purchase support 36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 37. Backed by Oracle 37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. • Oracle had a vested interest in Java long before it acquired Sun – We won’t -can’t- let it fail • Resources at http://oracle.com/java8
  • 38. 38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
  • 39. Safe Harbor Statement The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 39
  • 40. Java 101 A primer on the most used development platform in the world Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |