Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
handling nested structures: processing directories within directories evaluating expressions within expressions handling branching processes: traversing a branching tree structure planning a move in a chess game tracking the sequence of method calls in a Java program
18 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1628 | Lượt tải: 0
Cross-cutting concerns are concerns whose implementation cuts across a number of program components. This results in problems when changes to the concern have to be made - the code to be changed is not localised but is in different places across the system. Cross cutting concerns lead to tangling and scattering.
46 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 958 | Lượt tải: 0
Each node has references to the next and previous nodes In the last node, next is null; in the first node, previous is null. Can be traversed backwards
14 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1253 | Lượt tải: 0
Given a stimulus, the system must produce a reaction or response within a specified time. Periodic stimuli. Stimuli which occur at predictable time intervals For example, a temperature sensor may be polled 10 times per second. Aperiodic stimuli. Stimuli which occur at unpredictable times For example, a system power failure may trigger an in...
46 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1105 | Lượt tải: 0
In a priority queue, items are processed NOT in order of arrival, but in order of priority. java.util: Queue interface PriorityQueue (implements Queue)
62 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1376 | Lượt tải: 0
Choose a “pivot” element. Partition the array so that all the values to the left of the pivot are smaller than or equal to it, and all the elements to the right of the pivot are greater than or equal to it. Sort (recursively) the left-of-the-pivot and right-of-the-pivot pieces.
32 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 995 | Lượt tải: 0
Current web services standards have been criticized as ‘heavyweight’ standards that are over-general and inefficient. REST (REpresentational State Transfer) is an architectural style based on transferring representations of resources from a server to a client. This style underlies the web as a whole and is simpler than SOAP/WSDL for implementin...
53 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1146 | Lượt tải: 0
Axiomatic semantics is a language for specifying what a program is supposed to do. Based on the idea of an assertion: An assertion is a predicate that describes the state of a program at a point in its execution. A postcondition is an assertion that states the program’s result. A precondition is an assertion that states what must be true before...
19 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1078 | Lượt tải: 0
In a distributed system, it is inevitable that failures will occur, so the system has to be designed to be resilient to these failures. “You know that you have a distributed system when the crash of a system that you’ve never heard of stops you getting any work done.” Distributed systems should include mechanisms for discovering if a component...
57 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1332 | Lượt tải: 0
Name the five methods of the MouseListener interface. Can a class implement MouseMotionListener but not MouseListener? What are the units and the origin for the coordinates returned by the MouseEvent’s getX and getY methods? How many methods does the KeyListener interface specify?
22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1012 | Lượt tải: 0