Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction Mehdi Einali Advanced Programming in Java 1.

Similar presentations


Presentation on theme: "Introduction Mehdi Einali Advanced Programming in Java 1."— Presentation transcript:

1 Introduction Mehdi Einali Advanced Programming in Java 1

2 2 Agenda Introduction to Programming Introduction to Java Java History Java Characteristics

3 3 Think as Computer Scientist Problem-Solving the ability to formulate problems, think creatively about solutions, and express a solution clearly and accurately The process of learning to program is an excellent opportunity to practice problem-solving skills.

4 4 Programming languages High level language Java, Python, C or C++, and Perl Low level languages machine language or assembly language Loosely-speaking, computers can only run programs written in low-level languages Translate from high level to low-level = compile or interpret

5 5 advantages High level languages it is much easier to program in a highlevel language less time, shorter and easier to read, most likely to be correct Portable can run on different kinds of computers with few or no modifications

6 6 Java history Java was created in 1991 by James Gosling in Sun Microsystems Initially called Oak in honor of the tree outside Gosling's window Its name was changed to Java because there was already a language called Oak. Sun Microsystems released the first public implementation as Java 1.0 in 1995 Java syntax is similar to C and C++.

7 7 Java Motivation The need for platform independent language To be embedded in various consumer electronic products like toasters and refrigerators Platform independent?! Hardware Operating System

8 8

9 9 Question?

10 10 Java Motivation (2) At the same time, the World Wide Web and the Internet were gaining popularity. Java could be used for internet programming. Why? Platform independence Creation of Applets Open Source Culture JCP, JSR

11 11 The Java technology is: A programming language Java can create all kinds of applications A development environment A compiler (javac) An interpreter (java) A documentation generator (javadoc) A built in library (Java API) … Compare it to C++

12 12 Java Virtual Machine

13 13 Compile and Execution Stages Compare to C++ and Assembly.NET Framework

14 14 Java is Popular Some reports on programming languages popularity According to Job advertisements Book sales Finding code on the web …

15 15 Characteristics of Java Java is simple Java is object-oriented Java is architecture-neutral Java is portable Java is interpreted Java is multithreaded Java is secure Java is robust

16 16 Oracle, Sun, … Scott McNealy, former Sun Microsystems CEO, and Larry Ellison of Oracle announce a closer partnership in 2006, which led to Oracle acquiring Sun in 2009.

17 17 First Example Create a file named First.java Java class files have.java extension Note to naming convention Copy this lines to the file Note: File name and class name should be the same.

18 18 Assignment # 0 Download and install JDK http://www.oracle.com/technetwork/java/javase/downloads/in dex.html JDK 8 Jet brain's really Intelligent IntelliJ IDEA™ Community Edition https://www.jetbrains.com/idea/download/ Write a program that prints your name on the console Compile and run the program

19 19 Topics Introduction to java language Java syntax, operators, conditions, loops, … Strings Arrays Object Oriented Programming Interface Inheritance Polymorphism Software Quality Refactoring Test Advanced Java Programming Exception Handling Generics Collections Threads Files and Streams Networking Reflection GUI An introduction to programming world Think like Programmers

20 20 scoring 1Final Exam5 2Midterm Exam3 3Assignments4 4Project5 5Quiz3

21 21


Download ppt "Introduction Mehdi Einali Advanced Programming in Java 1."

Similar presentations


Ads by Google