introduction mehdi einali advanced programming in java 1

Download Introduction Mehdi Einali Advanced Programming in Java 1

If you can't read please download the document

Upload: tamsyn-jacobs

Post on 06-Jan-2018

217 views

Category:

Documents


0 download

DESCRIPTION

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.

TRANSCRIPT

Introduction Mehdi Einali Advanced Programming in Java 1 2 Agenda Introduction to Programming Introduction to Java Java History Java Characteristics 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 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 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 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 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 9 Question? 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 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 Java Virtual Machine 13 Compile and Execution Stages Compare to C++ and Assembly.NET Framework 14 Java is Popular Some reports on programming languages popularity According to Job advertisements Book sales Finding code on the web 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 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 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 Assignment # 0 Download and install JDKdex.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 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 scoring 1Final Exam5 2Midterm Exam3 3Assignments4 4Project5 5Quiz3 21