« Home « Chủ đề Lập trình với java

Chủ đề : Lập trình với java


Có 40+ tài liệu thuộc chủ đề "Lập trình với java"

Tài liệu về Javascript

tailieu.vn

SCRIPT >...</ SCRIPT >. đối tợng nh sau:. Lệnh tháo tác trên đối tợng.. Các câu lệnh thao tác trên đối tợng. đối tợng. Ví dụ sau tạo đối tợng person có các thuộc tính firstname, lastname, age, sex.. Chú ý rằng từ khoá this đợc sử dụng để chỉ đối tợng trong hàm person. Từ khoá this đợc sử...

CoreJava - Chương 1: LẬP TRÌNH HƯỚNG ĐỐI TƯỢNG

tailieu.vn

LẬP TRÌNH HƯỚNG ĐỐI TƯỢNG. Định nghĩa Lập trình hướng Đối tượng (Object­oriented Programming).. Định nghĩa một Đối tượng (Object).. Nhận thức được sự khác biệt giữa Lớp và Đối tượng.. Liệt kê những thuận lợi của phương pháp hướng Đối tượng.. 1.1 Giới thiệu về Lập trình hướng Đối tượng (Object­oriented Programming). Lập trình hướng Đối tượng (OOP) là ...

CoreJava 3 - NỀN TẢNG CỦA NGÔN NGỮ JAVA

tailieu.vn

Nguyên dạng (literals): Là các giá trị không đổi trong chương trình. Chương trình 3.1. Đây là phương thức chính, từ đây chương trình bắt đầu việc thực thi của mình. Trong trường hợp này, phương thức “main” được khai báo ‘public’, bởi vậy JVM có thể truy xuất phương thức này.. Nhưng trong trường hợp này, bản copy của ...

CoreJava 4 - GÓI & GIAO DIỆN

tailieu.vn

Các giao diện có thể được sử dụng để chỉ định một tập các phương thức. Các phương thức này có thể được hiện thực bởi một hay nhiều lớp.. //Giao diện với các phương thức public interface myinterface. Tất cả các phương thức trong các giao diện này phải là kiểu public.. Các phương thức được định nghĩa trong ...

CoreJava 5 - AWT

tailieu.vn

Một thành phần (component) GUI là một đối tượng trực quan. Các thành phần như là button, label v.v… có thể được nhìn thấy trên màn hình. Bất kỳ thao tác nào áp dụng đến tất cả các thành phần GUI đều được tìm thấy trong lớp đối tượng Component. Để tạo các thành phần GUI này, chúng ta cần ...

CoreJava - Chương 6: APPLETS

tailieu.vn

Lớp Applet bao gồm nhiều phương thức để điều khiển quá trình thực thi của applet. Đối với mỗi sự kiện, một phương thức được gọi một cách tự động. Ngoài những phương thức cơ bản này, còn có những phương thức ‘paint. Phương thức paint() dùng để hiển thị một đường thẳng (line), text, hoặc một hình ảnh trên ...

CoreJava 7 - XỬ LÝ NGOẠI LỆ (Exception Handling)

tailieu.vn

XỬ LÝ NGOẠI LỆ (Exception Handling). Định nghĩa một ngoại lệ (exception). Hiểu được mục đích của việc xử lý ngoại lệ. Hiểu được các kiểu ngoại lệ khác nhau trong Java. Mô tả mô hình xử lý ngoại lệ. Mô tả cách sử dụng các khối ‘try’, ‘catch’ và ‘finally’. Tự tạo ra các ngoại lệ . Ngôn ngữ...

CoreJava 8 - ĐA LUỒNG (Multithreading)

tailieu.vn

Giải thích vai trò của các phương thức wait() (đợi), notify() (thông báo) và notifyAll().. Trình bày lớp như là một lớp con của lớp luồng, nơi mà phương thức run() của lớp luồng cần được ghi đè. Rồi thì định nghĩa phương thức run().. Mỗi luồng được nhận một hằng số ưu tiên của phương thức Thread.PRIORITY là 5....

CoreJava 9 - LUỒNG I/O (I/O Streams)

tailieu.vn

Phương thức wait() báo cho dòng gọi từ bỏ monitor và nhập vào trạng thái ngủ cho đến khi các dòng khác nhập vào cùng monitor và gọi phương thức notify. Phương thức notify() và notifyAll() tạo ra dòng thông báo cho các dòng khác gọi phương thức wait() của cùng đối tượng. Cả hai lớp này có các lớp ...

CoreJava 10 - THỰC THI BẢO MẬT

tailieu.vn

THỰC THI BẢO MẬT. Sử dụng chữ ký điện tử (Digital Signatures) để nhận dạng Applets. Tạo bộ công cụ khóa bảo mật (Security key). Trong chương nay, chúng ta sẽ học mô hình bảo mật JDK 1.2.. Một file JAR là một file lưu trữ được nén do công cụ lưu trữ Java tạo ra. Nó chứa nhiều file ...

A Guide To Advanced Java - More on Threads

tailieu.vn

2007 Aptech Ltd Version 1.0 Page 1 of 2. 1 Express Pizza Service is an emerging name in the field of Pizza Delivery Service Provider. Its services include sending different types of pizza such as Neapolitan Pizza, Chicago Pizza, California Pizza, New York Pizza and Italian Pizza throughout the city without any delay. The customer gives a call to the...

A Guide To Advanced Java - Java.lang Package

tailieu.vn

1 The Ohio Blood Center (OBC) was formed in 1979 and collects and distributes more than 100,000 units of blood and plasma annually.. Consider you to be a part of the team that implements the solution for designing the application.. The three different counters are Counter 1, Counter 2 and Counter 3 that sells different groups of blood. The application...

A Guide To Advanced Java - Java.io package

tailieu.vn

The management of the Merchants Bank is looking at automation as a means to save time and effort required in their work. The CEO of the company and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing the application.....

A Guide To Advanced Java - Introduction to Threads

tailieu.vn

2007 Aptech Ltd Version 1.0 Page 1 of 2. 1 United Bank is an esteemed bank that provides various banking services. The management of United Bank is looking at automation as a means to save time and effort required in their work. In order to achieve this, the management has planned to computerize the process of transferring money from one...

A Guide To Advanced Java - Collections

tailieu.vn

1 Over the past 50 years, Arizona book publishers proved its excellent response and services towards the publishing industry and print media. It has a market record for printing 500 million copies of books in a single quarter. However, the manual process of printing the index for books having more than 5000 pages was a tedious and cumbersome process for...

A Guide To Advanced Java - Generics

tailieu.vn

Consider you to be a part of the team that implements the solution for designing the application.. The application internally creates a generic HashMap, known as DoctorHashMap that can store any generic key-value pair. The application is tested in another class which initially displays a menu with the following options.. The application terminates by printing an appropriate message and showing...

A Guide To Advanced Java - Re gular Expressions

tailieu.vn

The management of the Orion Corporation is looking at storing the details of their employees in a standardized format in their database. The CEO of the company and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing the application.....

A Guide To Advanced Java - Annotations

tailieu.vn

The application consists of the following classes:. The Employee class represents a typical employee record. The Employee class defines two methods to display the details of the employee.. The first method is the showEmployeeDetails() method which displays all the details of the employee. The Manager class extends from the Employee class. The class defines a parameterized constructor to create a...

A Guide To Advanced Java - Reflection

tailieu.vn

The management of the Global Investors Bank is looking at automation as a means to save time and effort required in their work. In order to achieve this, the management has planned to computerize the regular banking transactions.. The CEO of the company and a team of experts have chosen Atlantis Software to provide a solution for the same.. As...

Distributed Computing in Java - Introduction to Swing

tailieu.vn

1 The management of the Arizona University is looking at storing the details of their students in a standardized format in their database. The Vice Chancellor of the University and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing...