Java Core Introduction презентация

Содержание


Презентации» Информатика» Java Core Introduction
Java Core Introduction
 IT AcademyAgenda
 Introduction to Java Platform. Java SDK
 Environment and Development ToolsIntroduction to Java Platform
 James Gosling, Mike Sheridan, and Patrick NaughtonIntroduction to Java Platform
 Sun distinguishes between its Software Development KitIntroduction to Java Platform
 Specification Java 2 (JDK 1.2) – 1998/1999Platform Components
 JDK = JRE + Development/debugging tools
 JRE = JVMDetailed Diagram of Java ComponentsJava JDK
 http://www.oracle.com/technetwork/java/javase/downloads/index.htmlInstall Java
 In System Variables 
 enter the variable name as JAVA_HOME andInstall Java
 java -versionJava JDK. Entry Point
 public class Example {
   publicJava JDKJava JDK
 For Compile:
 	javac Example.java
 Output file: Example.class
 For Running:
Program Entry Point
 public class ShowArgs {
  public static voidSome types of dataOnline Java compiler
 http://www.tutorialspoint.com/compile_java_online.php
 https://ideone.com/
 https://www.compilejava.net/
 http://www.browxy.com/
 https://www.jdoodle.com/online-java-compilerEnvironment, Development Tools
 NetBeans began in 1996 as Xelfi (word playEnvironment, Development Tools
 JCreator is a Java IDE created by XinoxEclipseEclipsePackages
 Java package is a mechanism for organizing Java classes intoPackages
 imports all classes from the package
 	import java.awt.event.*;
 imports onlyPackages. Java
 java.lang – basic language functionality and fundamental types
 java.utilPackages
 Package names and type names usually differ.
 package Vector;
 publicInput data
 To input value during the run time you canMy first program
 package com.edu;
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
Tasks
 Create Console Application project in Java.
 In method main() writeHomeWork (online course)
 Please register on UDEMY course "Java Tutorial forHomeWork
 Install JDK and Eclipse.
 Create Java project.
 Create console application.The end



Слайды и текст этой презентации
Слайд 1
Описание слайда:
Java Core Introduction IT Academy


Слайд 2
Описание слайда:
Agenda Introduction to Java Platform. Java SDK Environment and Development Tools for Java applications Eclipse IDE Tips & Tricks The Entry Point into the Program Java Packages. Introduction My first program

Слайд 3
Описание слайда:
Introduction to Java Platform James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The language was initially called Oak after an oak tree. Now, Java it is the name of a platform and language. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995 (May 23, 1995, Java 1.0). With the advent of Java 2 (JDK 1.2, released initially as J2SE 1.2 in December 1998–1999), new versions had multiple configurations built for different types of platforms.

Слайд 4
Описание слайда:
Introduction to Java Platform Sun distinguishes between its Software Development Kit (SDK) and Runtime Environment (JRE) (a subset of the SDK); the primary distinction involves the JRE's lack of the compiler, utility programs, and header files. Sun also distributes a superset of the JRE called the Java Development Kit (commonly known as the JDK), which includes development tools such as the Java compiler, Javadoc, Jar, and debugger. The JDK forms an extended subset of a SDK. In the descriptions which accompany its recent releases for Java SE, EE, and ME, Sun acknowledges that under its terminology, the JDK forms the subset of the SDK which has the responsibility for the writing and running of Java programs.

Слайд 5
Описание слайда:
Introduction to Java Platform Specification Java 2 (JDK 1.2) – 1998/1999 (strictfp; collection support; Swing; GUI; drag-and-drop; CORBA; Unicode; JIT compiler). Sun renamed new J2 versions as Java EE, Java ME, and Java SE. Specification Java 5 (JDK 1.5) – September 2004 (enum type is class; generics mechanism, templates analog of C++; foreach; Autoboxing/Unboxing: for example, scalar and wrapper type int – Integer; Javadoc; etc.)

Слайд 6
Описание слайда:
Platform Components JDK = JRE + Development/debugging tools JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries. JVM = Java Virtual Machine

Слайд 7
Описание слайда:
Detailed Diagram of Java Components

Слайд 8
Описание слайда:
Java JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html

Слайд 9
Описание слайда:
Install Java In System Variables enter the variable name as JAVA_HOME and the variable value as the installation path for the Java Development Kit

Слайд 10
Описание слайда:
Install Java java -version

Слайд 11
Описание слайда:
Java JDK. Entry Point public class Example { public static void main(String[ ] args) { System.out.println("My first program"); } } To display information on the screen it’s used System.out.println("Text1"); System.out.println("Text 1 " + "Text 2");

Слайд 12
Описание слайда:
Java JDK

Слайд 13
Описание слайда:
Java JDK For Compile: javac Example.java Output file: Example.class For Running: java Example Exception in thread "main“ java.lang.NoClassDefFoundError: Example java -cp "Example.class;" Example For Creating Java archive: jar cvfm Example.jar Manifest.mf Example.class java -jar Example.jar

Слайд 14
Описание слайда:
Program Entry Point public class ShowArgs { public static void main(String[ ] args) { for (int i=0; i<args.length; i++) { System.out.println("Arg " + i + " is " + args[i]); } } } or public class ShowArgs2 { public static void main(String[ ] args) { for (String arg: args) { System.out.println("Command line arg: " + arg); } } }

Слайд 15
Описание слайда:
Some types of data

Слайд 16
Описание слайда:
Online Java compiler http://www.tutorialspoint.com/compile_java_online.php https://ideone.com/ https://www.compilejava.net/ http://www.browxy.com/ https://www.jdoodle.com/online-java-compiler

Слайд 17
Описание слайда:
Environment, Development Tools NetBeans began in 1996 as Xelfi (word play on Delphi). In 1997 Roman Staněk (Charles University in Prague) formed a company around the project and produced commercial versions of the NetBeans IDE until it was bought by Sun Microsystems in 1999. Sun open-sourced the NetBeans IDE IntelliJ IDEA is a commercial Java IDE by JetBrains. It is often simply referred to as 'IDEA' or 'IntelliJ'. A 30-day fully functional trial of the IntelliJ IDEA commercial edition for various platforms can be freely downloaded. Also available is an open source Community Edition. The first version of IntelliJ IDEA appeared in January 2001. Community Edition is open-source

Слайд 18
Описание слайда:
Environment, Development Tools JCreator is a Java IDE created by Xinox Software. Its interface is similar to that of Microsoft's Visual Studio. JCreator has two editions: Lite Edition (LE) is freeware and Pro Edition (Pro, 30-days trial). JCreator is only available on the Windows Operating System. Eclipse is a multi-language software development environment comprising an integrated development environment (IDE) and an extensible plug-in system. It is written primarily in Java and can be used to develop applications in Java and, by means of various plug-ins, other languages including C, C++, COBOL, Python, Perl, PHP, Scala, Scheme and Ruby (including Ruby on Rails framework) http://www.eclipse.org/downloads/

Слайд 19
Описание слайда:
Eclipse

Слайд 20
Описание слайда:
Eclipse

Слайд 21
Описание слайда:
Packages Java package is a mechanism for organizing Java classes into namespaces. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality. A package provides a unique namespace for the types it contains. Classes in the same package can access each other's package-access members. package java.awt.event;

Слайд 22
Описание слайда:
Packages imports all classes from the package import java.awt.event.*; imports only the ActionEvent class from the package import java.awt.event.ActionEvent; . . . ActionEvent myEvent = new ActionEvent(); Classes can also be used directly without an import declaration java.awt.event.ActionEvent myEvent = new java.awt.event.ActionEvent();

Слайд 23
Описание слайда:
Packages. Java java.lang – basic language functionality and fundamental types java.util – collection data structure classes java.io – file operations java.math – multiprecision arithmetics java.awt – basic hierarchy of packages for native GUI components javax.swing – hierarchy of packages for platform-independent rich GUI components The java.lang.* package is available without the use of an import statement.

Слайд 24
Описание слайда:
Packages Package names and type names usually differ. package Vector; public class Mosquito { int capacity; } //- - - - - - - - - - - - - - - - - - - - package strange.example; import java.util.Vector; import Vector.Mosquito; class Test { public static void main(String[ ] args) { System.out.println(new Vector().getClass()); System.out.println(new Mosquito().getClass()); } }

Слайд 25
Описание слайда:
Input data To input value during the run time you can use BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); String text = br.readLine(); int age = Integer.parseInt(br.readLine()); double t = Double.parseDouble(br.readLine()); Or Scanner sc = new Scanner(System.in); name = sc.nextLine();

Слайд 26
Описание слайда:
My first program package com.edu; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Hello. What is your name?"); String name = br.readLine(); System.out.println("How old are you?"); int age = Integer.parseInt(br.readLine()); System.out.println("Hello " + name); System.out.println("You are " + age); } }

Слайд 27
Описание слайда:
Tasks Create Console Application project in Java. In method main() write code for solving next tasks: Define integer variables a and b. Read values a and b from Console and calculate: a + b, a - b, a * b, a / b. Output obtained results. Output question “How are you?“. Define string variable answer. Read the value answer and output: “You are (answer)".

Слайд 28
Описание слайда:
HomeWork (online course) Please register on UDEMY course "Java Tutorial for Complete Beginners": https://www.udemy.com/java-tutorial/ Complete lessons 1-7:

Слайд 29
Описание слайда:
HomeWork Install JDK and Eclipse. Create Java project. Create console application. In method main() write code for solving next tasks: Flower bed is shaped like a circle. Calculate the perimeter and area by entering the radius. Output obtained results. Define string variable name and integer value age. Output question "What is your name?" Read the value name and output next question: “Where are you live, (name)?". Read address and write whole information. Phone calls from three different countries are с1, с2 and с3 standard units per minute. Talks continued t1, t2 and t3 minutes. How much computer will count for each call separately and all talk together? Input all source data from console, make calculations and output to the screen.

Слайд 30
Описание слайда:
The end


Скачать презентацию на тему Java Core Introduction можно ниже:

Похожие презентации