Danh mục

Bài giảng Phát triển ứng dụng nguồn mở: Bài 4 - Đoàn Thiện Ngân

Số trang: 34      Loại file: pdf      Dung lượng: 233.58 KB      Lượt xem: 15      Lượt tải: 0    
Hoai.2512

Hỗ trợ phí lưu trữ khi tải xuống: 12,000 VND Tải xuống file đầy đủ (34 trang) 0
Xem trước 4 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Bài 4 cung cấp kiến thức về Core Java. Các nội dung chính trong bài giảng này gồm có: Tổng quan về Java, so sánh Java và C++, đặc trưng của Java, nguyên lý hướng đối tượng của Java. Mời các bạn cùng tham khảo để biết thêm các nội dung chi tiết.
Nội dung trích xuất từ tài liệu:
Bài giảng Phát triển ứng dụng nguồn mở: Bài 4 - Đoàn Thiện Ngân Bài 4 : Core JavaGV: ĐOÀN THIỆN NGÂN Đoàn Thiện Ngân Bài 4 - 1/34 Nội dung• Tổng quan về Java• So sánh Java và C++• Đặc trưng của Java• Java platform• Nguyên lý hướng đối tượng của Java Đoàn Thiện Ngân Bài 4 - 2/34 Tài liệu tham khảo1. JAVA™ FOR PROGRAMMERS, 2ND EDITION, DEITEL® DEVELOPER SERIES2. NetBeans IDE 7 Cookbook, 2011, Packt Publishing3. Java Tutorial, http://docs.oracle.com/javase/tutorial/4. Netbeans Tutorial, http://netbeans.org/kb/trails/matisse.html Đoàn Thiện Ngân Bài 4 - 3/34 Tổng quan về Java• Java có cấu trúc tương tự C++• Java đơn giản hơn• Java là một ngôn ngữ lập trình rất mạnh• Java là một công nghệ mới xây dựng ứng dụng trên nhiều nền tảng khác nhauhttp://www.oracle.com/technetwork/java/index-jsp-135888.html Đoàn Thiện Ngân Bài 4 - 4/34 Java và C++ C++ JavaObject-Oriented Optional ObligatoryVariables Optional doesn’t existGlobals FunctionMulti-Platform Soure Code Soure Code (sometime) bytecodeMemory Manual AutomaticAdministration (Gababe Collector)Multi-Thread No YesMulti-Inheritance Yes Đoàn Thiện Ngân No Bài 4 - 5/34 Đặc trưng của Java• Hướng đối tượng• Đơn giản• Phân tán• Thông dịch trung gian (bytecode)• An toàn - Bảo mật• Cấu trúc độc lập• Dễ thích ứng• Kiểu dữ liệu mạnh• Xử lý đa luồng (multi-thread) Đoàn Thiện Ngân Bài 4 - 6/34 Đặc trưng của Java• Đặc trưng cơ bản của Java từ C và C++• Java được dùng nhiều trong ứng dụng: – di động – desktop – web• JVM (Java Virtual Machine) là máy ảo Java để chạy chương trình Java dạng bytecode (JRE - Java Runtime Environment)• JDK (Java Development Kit) là bộ công cụ để biên dịch (bytecode), dò lỗi và thực thi chương trình Java Đoàn Thiện Ngân Bài 4 - 7/34Đoàn Thiện Ngân Bài 4 - 8/34• HelloWorldApp.java• javac HelloWorldApp.java• HelloWorldApp.class• java HelloWorldApp Đoàn Thiện Ngân Bài 4 - 9/34What Can Java Technology Do?The general-purpose, high-level Javaprogramming language is a powerfulsoftware platform. Every fullimplementation of the Java platform givesyou the following features.• Development Tools: The development tools provide everything youll need for compiling, running, monitoring, debugging, and documenting your applications. As a new developer, the main tools youll be using are the javac compiler, the java launcher, and the javadoc documentation tool. Đoàn Thiện Ngân Bài 4 - 10/34What Can Java Technology Do?• Application Programming Interface (API): The API provides the core functionality of the Java programming language. It offers a wide array of useful classes ready for use in your own applications. It spans everything from basic objects, to networking and security, to XML generation and database access, and more. The core API is very large; to get an overview of what it contains, consult the Java SE Development Kit (JDKTM) documentation. Đoàn Thiện Ngân Bài 4 - 11/34What Can Java Technology Do?• Deployment Technologies: The JDK software provides standard mechanisms such as the Java Web Start software and Java Plug-In software for deploying your applications to end users.• User Interface Toolkits: The Swing and Java 2D toolkits make it possible to create sophisticated Graphical User Interfaces (GUIs). Đoàn Thiện Ngân Bài 4 - 12/34What Can Java Technology Do?• Integration Libraries: Integration libraries such as the Java IDL API, JDBCTM API, Java Naming and Directory InterfaceTM (J.N.D.I.) API, Java RMI, and Java Remote Method Invocation over Internet Inter-ORB Protocol Technology (Java RMI-IIOP Technology) enable database access and manipulation of remote objects. Đoàn Thiện Ngân Bài 4 - 13/34How Will Java Technology Change My Life?We cant promise you fame, fortune, or even a jobif you learn the Java programming language. Still,it is likely to make your programs better andrequires less effort than other languages. Webelieve that Java will help you:• Get started quickly: Although the Java programming language is a powerful object- oriented language, its easy to learn, especially for programmers already familiar with C or C++.• Wri ...

Tài liệu được xem nhiều: