1 / 11

Java is Awesome

Java is Awesome. Sean Pierce. What is the JVM and Why do I care?. What is the JVM and Why do I care?. Similar to an android app running inside it’s simulator on multiple platforms. Compiling byte code vs. C code. What is the JVM and Why do I care?. Multiple platforms

sunila
Download Presentation

Java is Awesome

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java is Awesome Sean Pierce

  2. What is the JVM and Why do I care?

  3. What is the JVM and Why do I care? • Similar to an android app running inside it’s simulator on multiple platforms

  4. Compiling byte code vs. C code

  5. What is the JVM and Why do I care? • Multiple platforms • Heavily lifting done for you • Found in the API

  6. Introducing the Java API • Easy-to-use Ctrl + Space:

  7. Introducing the Java API • Online Documentation: http://docs.oracle.com/javase/6/docs/api/

  8. All the things you should know but no one ever told you • Java is slow but still the predominate globally dev’d language • Re-usable • secure • NoClassDefFound error • Your Environment & class paths • .jar = .zip • Commands: • javacHelloWorld.java;//produces HelloWorld.class • java HelloWorld • ‘What every programmer should know about…’ • Unicode • Security • The internet • Android programming =ish java • C# is java for Microsoft (Their VM is called CLI) • Best way to learn is to do a personal project!

  9. Structured Vs. Objects • Blueprints = class • Batmobile = Object = =

  10. Project 1 • Create a class, with one method • Arrays are collections objects in Java but have special syntax • int input; • int[] inputArray; • inputArray = new int[4]; • Object[] objArray = new Object[4]; • String[] names = new String[10];//the array is null’ed • No segfault, ArrayIndexOutOfBoundsException • Output • System.out.print ("Testing All the possible values\n"); • System.out.println("Testing All the possible values"); • System.out.printf("%d", inputArray[0]); • Remember: BlueJ Projects = Directories

  11. Questions • How is Java different from other languages? • What is the JVM? • What does the JVM do? • How is a class different from an Object? • What is a .class file? • What is the NoClassDefFound error? • What is the best way to learn a language like Java?

More Related