• Java - Accessing databases with jdbcJava - Accessing databases with jdbc

    Methods of interface Connection setAutoCommit specifies whether each SQL statement commits after it completes (a true argument) or if several SQL statements should be grouped as a transaction (a false argument) If the argument to setAutoCommit is false, the program must follow the last SQL statement in the transaction with a call to Connection me...

    ppt144 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1027 | Lượt tải: 0

  • Java - NetworkingJava - Networking

    By default, applets cannot perform file processing Applets often limited in machine access Applets can communicate only with the machine from which it was originally downloaded Java Security API Digitally signed applets Applets given more privileges if from trusted source

    ppt96 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1089 | Lượt tải: 0

  • Java - MultithreadingJava - Multithreading

    Callable interface package java.util.concurrent declares a single method named call similar to Runnable, but method call allows the thread to return a value or to throw a checked exception ExecutorService method submit executes a Callable Returns an object of type Future (of package java.util.concurrent) that represents the executing Callable...

    ppt124 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 1146 | Lượt tải: 0

  • Java - Gui components: Part 2Java - Gui components: Part 2

    GridBagConstraints constants RELATIVE Specifies that the next-to-last component in a particular row should be placed to the right of the previous component in the row REMAINDER Specifies that a component is the last component in a row Components that are not the second-to-last or last component on a row must specify values for gridwidth and gr...

    ppt101 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 946 | Lượt tải: 0

  • Java - Multimedia: Applets and applicationsJava - Multimedia: Applets and applications

    Interface Player used to play video Class Manager declares utility methods for accessing system resources to play and manipulate media Manager method createRealizedPlayer obtains a Player for a specified media clip Loading and playing video Player method getVisualComponent gets component that displays visual aspect of media file Player method ...

    ppt40 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 915 | Lượt tải: 0

  • Java - CollectionsJava - Collections

    Abstract implementations Offer “bare bones” implementation of collection interfaces Programmers can “flesh out” customizable implementations AbstractCollection AbstractList AbstractMap AbstractSequentialList AbstractSet AbstractQueue

    ppt108 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 909 | Lượt tải: 0

  • Java - Data structuresJava - Data structures

    Duplicate elimination Because duplicate values follow the same “go left” or “go right” decisions, the insertion operation eventually compares the duplicate with a same-valued node The duplicate can then be ignored Tightly packed (or balanced) trees Each level contains about twice as many elements as the previous level Finding a match or determ...

    ppt68 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 951 | Lượt tải: 0

  • Java - Searching and sortingJava - Searching and sorting

    Four steps to developing a loop from a loop invariant Set initial values for any loop control variables Determine the condition that causes the loop to terminate Modify the control variable so the loop progresses toward termination Check that the invariant remains true at the end of each iteration

    ppt56 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 961 | Lượt tải: 0

  • Java - RecursionJava - Recursion

    Recursive Backtracking – process of using recursion to return to earlier decision point If one set of recursive calls does not result in solution, program backs up to previous decision point and makes different decision, often resulting in another set of recursive calls Examples Maze problem Eight-Queens problem

    ppt52 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 954 | Lượt tải: 0

  • Java - Files and streamsJava - Files and streams

    JFileChooser – class used to display a dialog that enables users to easily select files Method setFileSelectionMode specifies what user can select from JFileChooser FILES_AND_DIRECTORIES constant indicates files and directories FILES_ONLY constant indicates files only DIRECTORIES_ONLY constant indicates directories only Method showOpenDialog d...

    ppt82 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 927 | Lượt tải: 0