JTDS. DSA Acess from Java (JTDS) 47 A2 98US Rev00

Size: px
Start display at page:

Download "JTDS. DSA Acess from Java (JTDS) 47 A2 98US Rev00"

Transcription

1 JTDS DSA Acess from Java (JTDS) 47 A2 98US Rev00

2 JTDS DSA Acess from Java (JTDS) Subject: Special Instructions: Software Supported: Software/Hardware required: Date: June 2002 Bull S.A. CEDOC Atelier de reprographie 357, Avenue Patton BP ANGERS Cedex 01 FRANCE Bull HN Information Systems Inc. Publication Order Entry FAX: (800) MA30/ Concord Rd. Billerica, MA U.S.A. 47 A2 98US Rev00

3 Copyright Bull S.A., 2002 Bull acknowledges the rights of proprietors of trademarks mentioned herein. Your suggestions and criticisms concerning the form, contents and presentation of this manual are invited. A form is provided at the end of this manual for this purpose. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical or otherwise without the prior written permission of the publisher. Bull disclaims the implied warranties of merchantability and fitness for a particular purpose and makes no express warranties except as may be stated in its written agreement with and for its customer. In no event is Bull liable to anyone for any indirect, special, or consequential damages. The information and specifications in this document are subject to change without notice. Consult your Bull Marketing Representative for product or service availability. 47 A2 98US Rev00

4 Table of Contents 1. Introduction 2. Constructors Supplied with the Class 2.1 For an 8-parameter Call For a 7-parameter Call For a 6-parameter Call For a 5-parameter Call (Missing Password) For a 4-parameter Call (Missing User and Password) For a 3-parameter Call (Missing Mailbox, User and Password) For a 2-parameter Call (Missing System, Mailbox, User and Password) For a 1-parameter Call (Missing Port, System, Mailbox, User and Password) For a 0-parameter Call (Missing HOST Name, Port, System, Mailbox, User and Password) PUBLIC Methods Supplied 3.1 read write Break return_error_msg is_open is_turn is_alive disconnect A2 98US Rev00 iii

5 DSA Access from Java 4. Example of Java Access to a DSA Mailbox Index iv 47 A2 98US Rev00

6 Table of Graphics Tables 2-1. Positional Parameters - DSAconnect Error Handling Facilities - DSAconnect Error Handling Facilities - read Positional Parameter - write Error Handling Facilities - write Error Handling Facilities - Break Error Handling Facilities - return_error_msg Error Handling Facilities - is_open Error Handling Facilities - is_turn Error Handling Facilities - disconnect A2 98US Rev00 v

7 DSA Access from Java vi 47 A2 98US Rev00

8 1. Introduction This document describes the JTDS product which offers a DSA access to IOF or TDS from Java. The access is based on the Java class DSAconnect, which makes use of the sockethandling facilities of Java to connect to the NTGW7 gateway module. We then use the gateway to connect to any mailbox (IOF or TDS) using the ATMI or VCAM mechanisms. Once connection has been made to the mailbox, data can be sent to or read from the mailbox using specific methods supplied in the DSAconnect class. This class handles the notion of turn. We can only send data to the required mailbox when we have the turn. These methods, together with the other public methods of the class are described in the following sub-sections. Some exception and error recuperation mechanisms have been incorporated in the class. In all cases of error detection or exception recuperation, an exception (belonging to the class DSAexception) is thrown. These exceptions may all be intercepted by the caller under the general class DSAexception. An example of use of the DSAconnect class is provided in Appendix A. The test programme DSAtest provided makes use of the Threads facility of Java in order to handle the passage of break signals to the DSA mailbox. Restriction No encryption is provided for the password to be supplied in the DSA test program provided. 47 A2 98US Rev00 1-1

9 DSA Access from Java A2 98US Rev00

10 2. Constructors Supplied with the Class The following valid constructors are supplied with the DSAconnect class: 2.1 For an 8-parameter Call public DSAconnect (home, port, system, mailbox, user, password, project, billing) throws DSAexception, DSAexcep_inparm 2.2 For a 7-parameter Call public DSAconnect (home, port, system, mailbox, user, password, project) throws DSAexception, DSAexcep_inparm 2.3 For a 6-parameter Call public DSAconnect (home, port, system, mailbox, user, password) throws DSAexception, DSAexcep_inparm Note that the above positional parameters are outlined in Table 1 below. The first six parameters are obligatory, while the seventh (project) and eighth (billing) are optional. This method is used to effect a DSA connection from Java to an IOF or TDS mailbox. 47 A2 98US Rev00 2-1

11 DSA Access from Java Table 2-1. Positional Parameters - DSAconnect Name Type Length Comment Home String 36 The name of HOST on which the gateway is to be accessed. Port String 4 The port number on which the gateway is listening. System String 4 The GCOS 7 system for which DSA access is to be effected. Mailbox String 8 The Mailbox on which the connection is to be made. User String 12 The name of the user for whom the connection is to be made. Password String 12 The Password for the given user. Project String 12 The (optional) project for which the connection is to be made. If omitted, the default project for the user is assumed. Billing String 12 The (optional) billing for which the connection is to be made. If omitted, the default billing for the user is assumed. The first two parameters are required for access to the HOST gateway on the target DPS 7. The others are used to effect the DSA connection to the required mailbox. The connection is made by the constructor for the DSAconnect class. Several constructors are defined to allow for connection with a variable number of parameters (project and billing being optional). Since connection is carried out by the constructor (which returns void), an additional method (is_open) is supplied. This method (described later) allows us to test whether the connection is valid. In addition, constructors with from 0 to 5 parameters are defined. These constructors do not result in connection, but edit an appropriate error message (or set of error messages) indicating that an insufficient number of parameters has been supplied. These special constructors are defined below A2 98US Rev00

12 Constructors Supplied with the Class 2.4 For a 5-parameter Call (Missing Password) public DSAconnect (home, port, system, mailbox, user) throws DSAexception, DSAexcep_nopwd 2.5 For a 4-parameter Call (Missing User and Password) public DSAconnect (home, port, system, mailbox) throws DSAexception, DSAexcep_nousr 2.6 For a 3-parameter Call (Missing Mailbox, User and Password) public DSAconnect (home, port, system) throws DSAexception, DSAexcep_nombx 2.7 For a 2-parameter Call (Missing System, Mailbox, User and Password) public DSAconnect (home, port) throws DSAexception, DSAexcep_nosys 2.8 For a 1-parameter Call (Missing Port, System, Mailbox, User and Password) public DSAconnect (home) throws DSAexception, DSAexcep_noport 47 A2 98US Rev00 2-3

13 DSA Access from Java 2.9 For a 0-parameter Call (Missing HOST Name, Port, System, Mailbox, User and Password) public DSAconnect () throws DSAexception, DSAexcep_nohome Whenever one of these constructors is executed, one or more error messages is edited to indicate which obligatory parameters are missing. For example, execution of DSAconnect () leads to the edition of the following set of error messages: The 1st parameter (HOST Host name of up to 36 characters) is required The 2nd parameter (port number of up to 4 characters) is required The 3rd parameter (system of up to 4 characters) is required The 4th parameter (mailbox of up to 8 characters) is required The 5th parameter (username of up to 12 characters) is required The 6th parameter (password of up to 12 characters) is required Too few parameters ************************************************* Anomaly detected in DSAconnect ************************************************* See the following Table for more details on the error handling facilities supplied with this method. Table 2-2. Error Handling Facilities - DSAconnect Exception Cause Action Taken DSAexception Exception occurred during execution of the constructor prints the current stack if available DSAexcep_inparm DSAexcep_nbpar DSAexcep_nopwd an input parameter is too long (more than the specified length) the number of parameters supplied is insufficient the password has been omitted from the parameter list edits an error message to indicate which parameter value is too long (see Example 1 below) edits the following message : Too few parameters edits the following message : The 6th parameter (password of up to 12 characters) is required throws DSAexcep_nbpar A2 98US Rev00

14 Constructors Supplied with the Class Exception Cause Action Taken DSAexcep_nousr the user has been omitted from the parameter list edits the following message : The 5th parameter (username of up to 12 characters) is required DSAexcep_nombx DSAexcep_nosys DSAexcep_noport DSAexcep_nohome the mailbox has been omitted from the parameter list the system has been omitted from the parameter list the port number has been omitted from the parameter list the target HOST has been omitted from the parameter list throws DSAexcep_nopwd edits the following message : The 4th parameter (mailbox of up to 8 characters) is required throws DSAexcep_nousr edits the following message : The 3rd parameter (system of up to 4 characters) is required throws DSAexcep_nombx edits the following message : The 2nd parameter (port number of up to 4 characters) is required throws DSAexcep_nosys edits the following message : The 1st parameter (HOST name of up to 12 characters) is required throws DSAexcep_noport 47 A2 98US Rev00 2-5

15 DSA Access from Java EXAMPLE: Host Name Too Long DSAconnect (more_than_36_characters, 9003, bc06, iof, user1, password1) results in edition of the following text : Parameter 1 (Host name) is limited to 12 characters Exception caught during parameter controls Exception : DSAexcep_inparm DSAexcep_inparm at DSAconnect.control_parm(DSAconnect.java:461) at DSAconnect.<init>(DSAconnect.java:107) at DSAtest.main(DSAtest.java:99) **************** Connection error **************** End of processing A2 98US Rev00

16 3. PUBLIC Methods Supplied The following public methods are available with the DSAconnect class: read write Break return_error_msg is_open is_turn is_alive disconnect to read from a DSA mailbox to write to a DSA mailbox to effect a break to obtain details on an error code to test whether or not a connection is open to test whether or not we have the turn to write to test whether the mailbox connection is still alive to terminate a DSA connection (for error treatment) These methods are outlined in detail below. In addition, a sample client source program to illustrate the use of the DSAconnect class is provided below. Note that this program may be modified by the user and no guarantee is provided that it will function on all types of client machine. 47 A2 98US Rev00 3-1

17 DSA Access from Java 3.1 read This method is used to read from a DSA mailbox. The read method has no parameters, but returns a String (the data read) to the caller. It is the caller s responsability to loop on reading until he is given the turn, indicating that there is nothing left to read. Read in a Multi-Thread Context In a multi-thread context, if the read is performed while you have the turn, then the thread that performs the read remains blocked until another thread unblocks it by performing a write. Read in a Mono-Thread Context In a mono-thread context, if the read is performed while you have the turn, then the thread that performs the read remains blocked. In this case, you must test the turn before performing a read. public String read () throws DSAexception, DSAexcep_read, DSAexcep_endsession, DSAexcep_abnormalend See the Table 3-1 for details of the error handling facilities supplied with this method. Table 3-1. Error Handling Facilities - read Exception Cause Action Taken DSAexception Exception occurred during execution of this method prints the current stack, together with an error message DSAexcep_read DSAexcep_endsession DSAexcep_abnormalend error detected during attempt to read from mailbox the end of the DSA session has been detected an abnormal end of the DSA session has been detected edits the error message: Error during read from mailbox : user disconnected edits the error message: Normal end of session edits the error message: Abnormal end of session A2 98US Rev00

18 PUBLIC Methods Supplied 3.2 write This method is used to write to a DSA mailbox. The write method has a single input parameter, a string giving the data to be sent to the mailbox. public void write (String strin) throws DSAexception, DSAexcep_write The input parameter is described in the following Table. Table 3-2. Positional Parameter - write Name Type Length Comment strin String Variable the data to be sent to the mailbox See the Table 3-3 for details of the error handling facilities supplied with this method. Table 3-3. Error Handling Facilities - write Exception Cause Action Taken DSAexception Exception occurred during prints the current stack execution of this method DSAexcep_write error detected during attempt to write to mailbox edits the error message: Error during write to mailbox : user disconnected 47 A2 98US Rev00 3-3

19 DSA Access from Java 3.3 Break This method is used to send a break signal to a DSA mailbox. The Break method has no parameters. public void Break () throws DSAexception, DSAexcep_break See the following Table for details of the error handling facilities supplied with this method. Table 3-4. Error Handling Facilities - Break Exception Cause Action Taken DSAexception Exception occurred during Prints the current stack execution of this method DSAexcep_ break Error detected during attempt to send break signal to mailbox Edits the error message: Error during break handling : user disconnected 3.4 return_error_msg This method is used to obtain information on an error condition. public String return_error_msg () throws DSAexception See the Table 3-5 for details of the error handling facilities supplied with this method. Table 3-5. Error Handling Facilities - return_error_msg Exception Cause Action Taken DSAexception Exception occurred during Prints the current stack execution of this method A2 98US Rev00

20 PUBLIC Methods Supplied 3.5 is_open This method is used to test whether a connection has been successfully made. It has no parameters, but returns a boolean whose value is : true false if the connection is open if the connection could not be made public boolean is_open () throws DSAexception See the following Table for details of the error handling facilities supplied with this method. Table 3-6. Error Handling Facilities - is_open Exception Cause Action Taken DSAexception exception occurred during prints the current stack execution of this method 3.6 is_turn This method is used to test whether it is your turn (to write). It has no parameters, but returns a boolean whose value is: true false if it is your turn to write if it is not your turn to write public boolean is_turn () throws DSAexception See the Table 3-7 for details of the error handling facilities supplied with this method. Table 3-7. Error Handling Facilities - is_turn Exception Cause Action Taken DSAexception exception occurred during prints the current stack execution of this method 47 A2 98US Rev00 3-5

21 DSA Access from Java 3.7 is_alive The is_open method described above returns true at the the creation of a DSAconnect object but doesn t allow real time looking after connection state (The connection state is known only after a following read method and so is_open doesn t allow a good scanning for connection pooling). The is_alive method is used to test whether the mailbox connection is alive in real time, and so it allows real time connection state scanning for efficient pooling by the application. is_alive() has no parameters and returns a boolean whose value is : true if the mailbox connection is alive false if the mailbox connection is dead public boolean is_alive() throws DSAexception 3.8 disconnect This method is used to disconnect from a DSA mailbox. It has no parameters and returns void. It is not always necessary for the user to effect the disconnection. If a read is effected after disconnection, the exception DSAendsession is thrown. The user should therefore provide a catch clause for this condition. Note that the HOST gateway acts merely as a tube for the passage of data to and from the mailbox. No interpretation of the data is carried out by the gateway module. public void disconnect () throws DSAexception See the following Table for details of the error handling facilities supplied with this method. Table 3-8. Error Handling Facilities - disconnect Exception Cause Action Taken DSAexception exception occurred during prints the current stack execution of this method A2 98US Rev00

22 4. Example of Java Access to a DSA Mailbox Note that this extract indicates how to use the DSAconnect class with a 6- parameter constructor (project and billing take the default values for the given user). The DSAtest program provided uses the Threads facility of Java to allow simultaneous reading from and writing to a DSA mailbox. In this way we can handle the passage of break signals to the mailbox. In DSAtest, the string $*$BRK is used to indicate a break, but this may of course be modified by the user for his own specific needs. We do NOT guarantee that this sample program will run on any platform.import java.io.*; import java.net.*; import java.util.*; import java.lang.*; // =========================================================== class DSAtest extends Thread static Thread t; static DSAconnect cnx; // main entry point public static void main(string args[]) throws InterruptedException try String Strin = ; String arg_home = ; String arg_port = ; String arg_site = ; String arg_mbx = ; String arg_user = ; String arg_pw = ; char C; boolean online = true; // boolean online = false; Exception exc = new Exception(); if (! online) 47 A2 98US Rev00 4-1

23 DSA Access from Java System.out.println( *************** DSAtest execution *************** ); System.out.println( ); // ************* HOST name ****************** String Prompt1 = HOST name : ; System.out.print(Prompt1); while ((C = (char)system.in.read())!= '\n') arg_home = arg_home + C; // ************* Port number ****************** String Prompt2 = Port number : ; System.out.print(Prompt2); while ((C = (char)system.in.read())!= '\n') arg_port = arg_port + C; // ************* GCOS7 site ****************** String Prompt3 = GCOS7 site : ; System.out.print(Prompt3); while ((C = (char)system.in.read())!= '\n') arg_site = arg_site + C; // ************* Mailbox ****************** String Prompt4 = Mailbox : ; System.out.print(Prompt4); while ((C = (char)system.in.read())!= '\n') arg_mbx = arg_mbx + C; // ************* User ****************** String Prompt5 = User : ; System.out.print(Prompt5); while ((C = (char)system.in.read())!= '\n') arg_user = arg_user + C; // ************* Password ****************** String Prompt6 = Password : ; System.out.print(Prompt6); while ((C = (char)system.in.read())!= '\n') arg_pw = arg_pw + C; // ***************************************** else // ************* HOST name ****************** arg_home = args[0]; System.out.println( HOST name : + arg_home); // ************* Port number ****************** arg_port = args[1]; System.out.println( Port number : + arg_port); // ************* GCOS7 site ****************** arg_site = args[2]; System.out.println( GCOS7 name : + arg_site); A2 98US Rev00

24 Example of Java Access to a DSA Mailbox // ************* Mailbox ****************** arg_mbx = args[3]; System.out.println( Mailbox name: + arg_mbx); // ************* User ****************** arg_user = args[4]; System.out.println( User name : + arg_user); // ************* Password ****************** arg_pw = args[5]; System.out.println( Password : + arg_pw); System.out.println( ); boolean end_of_test = false; cnx = new DSAconnect(arg_home,arg_port,arg_site,arg_mbx,arg_user, arg_pw); if (cnx.is_open()) t = new Thread(new readmbx(cnx)); t.setpriority(thread.currentthread().getpriority() + 1); t.start(); else String errstr = cnx.return_error_msg(); System.out.println( **************** Connection error **************** ); System.out.println(errStr); while (cnx.is_open()) Strin = ; while ((C = (char)system.in.read())!= '\n') Strin = Strin + C; if (Strin.compareTo( $*$BRK ) == 0) cnx.break(); else if (cnx.is_turn()) cnx.write(strin); catch (DSAexcep_endsession e) System.out.println( End of session ); System.out.println( ************************************************* ); System.out.flush(); catch (DSAexception e) 47 A2 98US Rev00 4-3

25 DSA Access from Java System.out.println( ); System.out.println( ************************************************* ); System.out.println( ); System.out.println( Anomalie detected in DSAconnect ); System.out.println( ************************************************* ); System.out.flush(); catch (Exception e) System.out.println( ); System.out.println( ************************************************* ); System.out.println( ); System.out.println( Exception recovered in DSAtest ); System.out.println( Exception : + e.tostring()); e.printstacktrace(); System.out.println( ); System.out.println( ************************************************* ); System.out.flush(); class readmbx implements Runnable private DSAconnect cnx; public readmbx(dsaconnect cnt) throws DSAexception, DSAexcep_endsession, DSAexcep_read cnx = cnt; public void run() try while (cnx.is_open()) Thread.currentThread().yield(); String Strout = cnx.read(); System.out.print(Strout); System.out.flush(); cnx.disconnect(); System.exit(0); catch (DSAexcep_endsession e) System.out.println( End of session detected ); catch (DSAexception e) System.out.println( Exception in readmbx ); A2 98US Rev00

26 Index B Break method 3-4 C classes DSAconnect 1-1 D disconnect method 3-6 I is_open method 3-5, 3-6 is_turn method 3-5 M methods Break 3-4 disconnect 3-6 is_open 3-5, 3-6 is_turn 3-5 read 3-2 return_error_msg 3-4 write 3-3 P public methods Break 3-4 disconnect 3-6 is_open 3-5, 3-6 is_turn 3-5 read 3-2 retun_error_msg 3-4 write 3-3 R read method 3-2 return_error_msg method 3-4 W write method A2 98US Rev00 i-1

27 DSA Access from Java i-2 47 A2 98US Rev00

28 Vos remarques sur ce document / Technical publications remarks form Titre / Title : DSA Acess from Java (JTDS) N Référence / Reference No. : 47 A2 98US Rev00 Date / Dated : June 2002 ERREURS DETECTEES / ERRORS IN PUBLICATION AMELIORATIONS SUGGEREES / SUGGESTIONS FOR IMPROVEMENT TO PUBLICATION Vos remarques et suggestions seront attentivement examinées. Si vous désirez une réponse écrite, veuillez indiquer ci-après votre adresse postale complète. Your comments will be promptly investigated by qualified personnel and action will be taken as required. If you require a written reply, furnish your complete mailing address below. NOM / NAME : DATE : SOCIETE / COMPANY : ADRESSE / ADDRESS : Remettez cet imprimé à un responsable Bull S.A. ou envoyez-le directement à : Please give this technical publications remarks form to your Bull S.A. representative or mail to: Bull S.A. CEDOC Atelier de reprographie 357, Avenue Patton BP ANGERS Cedex 01 FRANCE Bull HN Information Systems Inc. Publication Order Entry FAX: (800) MA30/ Concord Rd. Billerica, MA U.S.A.

WLM Accounting. User s Guide AIX ORDER REFERENCE 86 A2 76EF 00

WLM Accounting. User s Guide AIX ORDER REFERENCE 86 A2 76EF 00 WLM Accounting User s Guide AIX ORDER REFERENCE 86 A2 76EF 00 WLM Accounting User s Guide AIX Software September 2001 BULL CEDOC 357 AVENUE PATTON B.P.20845 49008 ANGERS CEDEX 01 FRANCE ORDER REFERENCE

More information

Threads Chate Patanothai

Threads Chate Patanothai Threads Chate Patanothai Objectives Knowing thread: 3W1H Create separate threads Control the execution of a thread Communicate between threads Protect shared data C. Patanothai Threads 2 What are threads?

More information

Computation Abstractions. Processes vs. Threads. So, What Is a Thread? CMSC 433 Programming Language Technologies and Paradigms Spring 2007

Computation Abstractions. Processes vs. Threads. So, What Is a Thread? CMSC 433 Programming Language Technologies and Paradigms Spring 2007 CMSC 433 Programming Language Technologies and Paradigms Spring 2007 Threads and Synchronization May 8, 2007 Computation Abstractions t1 t1 t4 t2 t1 t2 t5 t3 p1 p2 p3 p4 CPU 1 CPU 2 A computer Processes

More information

UNIVERSAL NOVASCALE R421 R422 R422-INF. HOW TO: Install Windows Using a Virtual Media Drive. REFERENCE Rev05v01

UNIVERSAL NOVASCALE R421 R422 R422-INF. HOW TO: Install Windows Using a Virtual Media Drive. REFERENCE Rev05v01 R421 R422 R422-INF HOW TO: Install Windows Using a Virtual Media Drive NOVASCALE UNIVERSAL REFERENCE Rev05v01 NOVASCALE UNIVERSAL R421 R422 R422-INF HOW TO: Install Windows Using a Virtual Media Drive

More information

Bull. Token Ring PCI Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 31GX 03

Bull. Token Ring PCI Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 31GX 03 Bull Token Ring PCI Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 31GX 03 Bull Token Ring PCI Adapters Installation and Configuration Guide Hardware August 1999 BULL ELECTRONICS

More information

NovaScale 5xx5 NOVASCALE. Cabling Guide REFERENCE 86 A1 92ER 03

NovaScale 5xx5 NOVASCALE. Cabling Guide REFERENCE 86 A1 92ER 03 NovaScale 5xx5 Cabling Guide NOVASCALE REFERENCE 86 A1 92ER 03 BLANK NOVASCALE NovaScale 5xx5 Cabling Guide Hardware September 2007 BULL CEDOC 357 AVENUE PATTON B.P.20845 49008 ANGERS CEDEX 01 FRANCE REFERENCE

More information

7. MULTITHREDED PROGRAMMING

7. MULTITHREDED PROGRAMMING 7. MULTITHREDED PROGRAMMING What is thread? A thread is a single sequential flow of control within a program. Thread is a path of the execution in a program. Muti-Threading: Executing more than one thread

More information

Le L c e t c ur u e e 5 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Exception Handling

Le L c e t c ur u e e 5 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Exception Handling Course Name: Advanced Java Lecture 5 Topics to be covered Exception Handling Exception HandlingHandlingIntroduction An exception is an abnormal condition that arises in a code sequence at run time A Java

More information

CMSC 202. Exceptions

CMSC 202. Exceptions CMSC 202 Exceptions Error Handling In the ideal world, all errors would occur when your code is compiled. That won t happen. Errors which occur when your code is running must be handled by some mechanism

More information

Multithreaded Programming

Multithreaded Programming Multithreaded Programming Multithreaded programming basics Concurrency is the ability to run multiple parts of the program in parallel. In Concurrent programming, there are two units of execution: Processes

More information

SQL-CMA SQL*XT for ORACLE

SQL-CMA SQL*XT for ORACLE Database Products SQL-CMA SQL*XT for ORACLE GCOS 7 SQL Client Mode Access User's Guide GCOS 7 47 A2 01EL Rev 00 Database Products SQL-CMA SQL*XT for ORACLE GCOS 7 SQL Client Mode Access User's Guide GCOS

More information

CMSC 132: Object-Oriented Programming II. Threads in Java

CMSC 132: Object-Oriented Programming II. Threads in Java CMSC 132: Object-Oriented Programming II Threads in Java 1 Problem Multiple tasks for computer Draw & display images on screen Check keyboard & mouse input Send & receive data on network Read & write files

More information

public class Shared0 { private static int x = 0, y = 0;

public class Shared0 { private static int x = 0, y = 0; A race condition occurs anytime that the execution of one thread interferes with the desired behavior of another thread. What is the expected postcondition for the following bump() method? What should

More information

CMSC 331 Second Midterm Exam

CMSC 331 Second Midterm Exam 1 20/ 2 80/ 331 First Midterm Exam 11 November 2003 3 20/ 4 40/ 5 10/ CMSC 331 Second Midterm Exam 6 15/ 7 15/ Name: Student ID#: 200/ You will have seventy-five (75) minutes to complete this closed book

More information

Crash Course in Java. Why Java? Java notes for C++ programmers. Network Programming in Java is very different than in C/C++

Crash Course in Java. Why Java? Java notes for C++ programmers. Network Programming in Java is very different than in C/C++ Crash Course in Java Netprog: Java Intro 1 Why Java? Network Programming in Java is very different than in C/C++ much more language support error handling no pointers! (garbage collection) Threads are

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

Chapter 9. Exception Handling. Copyright 2016 Pearson Inc. All rights reserved.

Chapter 9. Exception Handling. Copyright 2016 Pearson Inc. All rights reserved. Chapter 9 Exception Handling Copyright 2016 Pearson Inc. All rights reserved. Last modified 2015-10-02 by C Hoang 9-2 Introduction to Exception Handling Sometimes the best outcome can be when nothing unusual

More information

A Third Look At Java. Chapter Seventeen Modern Programming Languages, 2nd ed. 1

A Third Look At Java. Chapter Seventeen Modern Programming Languages, 2nd ed. 1 A Third Look At Java Chapter Seventeen Modern Programming Languages, 2nd ed. 1 A Little Demo public class Test { public static void main(string[] args) { int i = Integer.parseInt(args[0]); int j = Integer.parseInt(args[1]);

More information

Module - 4 Multi-Threaded Programming

Module - 4 Multi-Threaded Programming Terminologies Module - 4 Multi-Threaded Programming Process: A program under execution is called as process. Thread: A smallest component of a process that can be executed independently. OR A thread is

More information

x10data Smart Client 7.0 for Windows Mobile Installation Guide

x10data Smart Client 7.0 for Windows Mobile Installation Guide x10data Smart Client 7.0 for Windows Mobile Installation Guide Copyright Copyright 2009 Automated Data Capture (ADC) Technologies, Incorporated. All rights reserved. Complying with all applicable copyright

More information

CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [THREADS] Frequently asked questions from the previous class survey

CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [THREADS] Frequently asked questions from the previous class survey CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [THREADS] Shrideep Pallickara Computer Science Colorado State University L6.1 Frequently asked questions from the previous class survey L6.2 SLIDES CREATED BY:

More information

엄현상 (Eom, Hyeonsang) School of Computer Science and Engineering Seoul National University COPYRIGHTS 2017 EOM, HYEONSANG ALL RIGHTS RESERVED

엄현상 (Eom, Hyeonsang) School of Computer Science and Engineering Seoul National University COPYRIGHTS 2017 EOM, HYEONSANG ALL RIGHTS RESERVED 엄현상 (Eom, Hyeonsang) School of Computer Science and Engineering Seoul National University COPYRIGHTS 2017 EOM, HYEONSANG ALL RIGHTS RESERVED Outline - Interfaces - An Instrument interface - Multiple Inheritance

More information

x10data Smart Client 6.5 for Windows Mobile Installation Guide

x10data Smart Client 6.5 for Windows Mobile Installation Guide x10data Smart Client 6.5 for Windows Mobile Installation Guide Copyright Copyright 2009 Automated Data Capture (ADC) Technologies, Incorporated. All rights reserved. Complying with all applicable copyright

More information

Unit - IV Multi-Threading

Unit - IV Multi-Threading Unit - IV Multi-Threading 1 Uni Processing In the early days of computer only one program will occupy the memory. The second program must be in waiting. The second program will be entered whenever first

More information

Exceptions Handling Errors using Exceptions

Exceptions Handling Errors using Exceptions Java Programming in Java Exceptions Handling Errors using Exceptions Exceptions Exception = Exceptional Event Exceptions are: objects, derived from java.lang.throwable. Throwable Objects: Errors (Java

More information

This LFA User's Guide is aimed at those network administrators responsible for monitoring resource usage, planning the load, etc.

This LFA User's Guide is aimed at those network administrators responsible for monitoring resource usage, planning the load, etc. October 1997 1, 1997 Preface THE LOG FILE ANALYZER (LFA) LFA is an analytical tool that provides the means to administer communication lines. It offers a complete range of facilities to monitor resource

More information

MSc Software Testing MSc Prófun hugbúnaðar

MSc Software Testing MSc Prófun hugbúnaðar MSc Software Testing MSc Prófun hugbúnaðar Fyrirlestrar 37 og 38 Assertion facility in Java Assertions as a test oracle in random testing before code deployment... 31/10/2007 Dr Andy Brooks 1 Case Study

More information

ILLUSTRATION DES EXCEPTIONS

ILLUSTRATION DES EXCEPTIONS ILLUSTRATION DES EXCEPTIONS Exemple 1: Capture d'une exception prédéfinie package exception1; public class PrintArgs public static void main ( String[ ] args ) System.out.println ( " Affichage des paramètres

More information

Bull DPX/20 ESCALA. 8 Port & 128 Port Async Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 06GX 01

Bull DPX/20 ESCALA. 8 Port & 128 Port Async Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 06GX 01 Bull DPX/20 ESCALA 8 Port & 128 Port Async Adapters Installation and Configuration Guide ORDER REFERENCE 86 A1 06GX 01 Bull DPX/20 ESCALA 8 Port & 128 Port Async Adapters Installation and Configuration

More information

Exercise Session Week 8

Exercise Session Week 8 Chair of Software Engineering Java and C# in Depth Carlo A. Furia, Marco Piccioni, Bertrand Meyer Exercise Session Week 8 Java 8 release date Was early September 2013 Currently moved to March 2014 http://openjdk.java.net/projects/jdk8/milestones

More information

The Java Series. Java Essentials Advanced Language Constructs. Java Essentials II. Advanced Language Constructs Slide 1

The Java Series. Java Essentials Advanced Language Constructs. Java Essentials II. Advanced Language Constructs Slide 1 The Java Series Java Essentials Advanced Language Constructs Slide 1 Java Packages In OO, libraries contain mainly class definitions A class hierarchy Typically, to use a class library we: Instantiate

More information

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question) CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

By: Abhishek Khare (SVIM - INDORE M.P)

By: Abhishek Khare (SVIM - INDORE M.P) By: Abhishek Khare (SVIM - INDORE M.P) MCA 405 Elective I (A) Java Programming & Technology UNIT-2 Interface,Multithreading,Exception Handling Interfaces : defining an interface, implementing & applying

More information

CNS 7 User's Guide. Communications. CNS 7 A2 In/On Line Tests CNS 7. Software. Subject : Special instructions : Software supported :

CNS 7 User's Guide. Communications. CNS 7 A2 In/On Line Tests CNS 7. Software. Subject : Special instructions : Software supported : Communications CNS 7 User's Guide CNS 7 A2 In/On Line Tests CNS 7 Software Subject : This guide tells CNP 7 network operators how to test the components of a DSA network. The CNP 7 (Communications Network

More information

NOVASCALE 7000 DPS7000/XTA V7000. Operators' Guide. Hardware: DPS7000/XTA REFERENCE 77 A2 74US 10

NOVASCALE 7000 DPS7000/XTA V7000. Operators' Guide. Hardware: DPS7000/XTA REFERENCE 77 A2 74US 10 V7000 Operators' Guide DPS7000/XTA NOVASCALE 7000 Hardware: DPS7000/XTA REFERENCE 77 A2 74US 10 DPS7000/XTA NOVASCALE 7000 V7000 Operators' Guide Hardware: DPS7000/XTA Software September 2009 BULL CEDOC

More information

Multiple Choice Questions: Identify the choice that best completes the statement or answers the question. (15 marks)

Multiple Choice Questions: Identify the choice that best completes the statement or answers the question. (15 marks) M257 MTA Spring2010 Multiple Choice Questions: Identify the choice that best completes the statement or answers the question. (15 marks) 1. If we need various objects that are similar in structure, but

More information

CS455: Introduction to Distributed Systems [Spring 2019] Dept. Of Computer Science, Colorado State University

CS455: Introduction to Distributed Systems [Spring 2019] Dept. Of Computer Science, Colorado State University CS 455: INTRODUCTION TO DISTRIBUTED SYSTEMS [THREADS] The House of Heap and Stacks Stacks clean up after themselves But over deep recursions they fret The cheerful heap has nary a care Harboring memory

More information

Unit III Rupali Sherekar 2017

Unit III Rupali Sherekar 2017 Unit III Exceptions An exception is an abnormal condition that arises in a code sequence at run time. In other words, an exception is a run-time error. In computer languages that do not support exception

More information

Overview. Processes vs. Threads. Computation Abstractions. CMSC 433, Fall Michael Hicks 1

Overview. Processes vs. Threads. Computation Abstractions. CMSC 433, Fall Michael Hicks 1 CMSC 433 Programming Language Technologies and Paradigms Spring 2003 Threads and Synchronization April 1, 2003 Overview What are threads? Thread scheduling, data races, and synchronization Thread mechanisms

More information

Lecture 35. Threads. Reading for next time: Big Java What is a Thread?

Lecture 35. Threads. Reading for next time: Big Java What is a Thread? Lecture 35 Threads Reading for next time: Big Java 21.4 What is a Thread? Imagine a Java program that is reading large files over the Internet from several different servers (or getting data from several

More information

Bull. SNMP Agent for HiSpeed Adapters Administrator & User Guide AIX ORDER REFERENCE 86 A2 73AT 02

Bull. SNMP Agent for HiSpeed Adapters Administrator & User Guide AIX ORDER REFERENCE 86 A2 73AT 02 Bull SNMP Agent for HiSpeed Adapters Administrator & User Guide AIX ORDER REFERENCE 86 A2 73AT 02 Bull SNMP Agent for HiSpeed Adapters Administrator & User Guide AIX Software October 1997 BULL ELECTRONICS

More information

An article on collecting IBM InfoSphere CDC Subscription health matrices in a Java program using the Monitoring API

An article on collecting IBM InfoSphere CDC Subscription health matrices in a Java program using the Monitoring API An article on collecting IBM InfoSphere CDC Subscription health matrices in a Java program using the Monitoring API Aniket Kadam(anikadam@in.ibm.com) Prerequisites Before going through the article reader

More information

CS506 Web Design & Development Final Term Solved MCQs with Reference

CS506 Web Design & Development Final Term Solved MCQs with Reference with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar

More information

Program #3 - Airport Simulation

Program #3 - Airport Simulation CSCI212 Program #3 - Airport Simulation Write a simulation for a small airport that has one runway. There will be a queue of planes waiting to land and a queue of planes waiting to take off. Only one plane

More information

MainWindow.java. Page 1

MainWindow.java. Page 1 / This project is a demo showing a sound card selector and tester. The UI would look nice and work better, but I've decided that's outside the scope of this demo. Code from this demo will eventually be

More information

Nokia E61i support

Nokia E61i  support Nokia E61i Nokia E61i Legal Notice Copyright Nokia 2007. All rights reserved. Reproduction, transfer, distribution or storage of part or all of the contents in this document in any form without the prior

More information

Multiplayer Game Programming 2/26

Multiplayer Game Programming 2/26 Multiplayer Game Programming 2/26 1. Turn off Windows Firewall 2. Download and install Python and Notepad++ a. Python.org downloads/python/install b. Notepad-plus-plus.org download/install 3. Download

More information

Concurrent Programming using Threads

Concurrent Programming using Threads Concurrent Programming using Threads Threads are a control mechanism that enable you to write concurrent programs. You can think of a thread in an object-oriented language as a special kind of system object

More information

Exercise Session Week 8

Exercise Session Week 8 Chair of Software Engineering Java and C# in Depth Carlo A. Furia, Marco Piccioni, Bertrand Meyer Exercise Session Week 8 Quiz 1: What is printed? (Java) class MyTask implements Runnable { public void

More information

COMP 213. Advanced Object-oriented Programming. Lecture 20. Network Programming

COMP 213. Advanced Object-oriented Programming. Lecture 20. Network Programming COMP 213 Advanced Object-oriented Programming Lecture 20 Network Programming Network Programming A network consists of several computers connected so that data can be sent from one to another. Network

More information

Reading from URL. Intent - open URL get an input stream on the connection, and read from the input stream.

Reading from URL. Intent - open URL  get an input stream on the connection, and read from the input stream. Simple Networking Loading applets from the network. Applets are referenced in a HTML file. Java programs can use URLs to connect to and retrieve information over the network. Uniform Resource Locator (URL)

More information

2018/2/5 话费券企业客户接入文档 语雀

2018/2/5 话费券企业客户接入文档 语雀 1 2 2 1 2 1 1 138999999999 2 1 2 https:lark.alipay.com/kaidi.hwf/hsz6gg/ppesyh#2.4-%e4%bc%81%e4%b8%9a%e5%ae%a2%e6%88%b7%e6%8e%a5%e6%94%b6%e5%85%85%e5 1/8 2 1 3 static IAcsClient client = null; public static

More information

G51PGP Programming Paradigms. Lecture 009 Concurrency, exceptions

G51PGP Programming Paradigms. Lecture 009 Concurrency, exceptions G51PGP Programming Paradigms Lecture 009 Concurrency, exceptions 1 Reminder subtype polymorphism public class TestAnimals public static void main(string[] args) Animal[] animals = new Animal[6]; animals[0]

More information

Copyright NeoAccel Inc. SSL VPN-Plus TM. NeoAccel Management Console: Network Extension version 2.3

Copyright NeoAccel Inc. SSL VPN-Plus TM. NeoAccel Management Console: Network Extension version 2.3 Copyright 2005-2009. NeoAccel Inc. SSL VPN-Plus TM NeoAccel Management Console: Network Extension version 2.3 NeoAccel makes no warranty of any kind with regard to this manual, including, but not limited

More information

National University. Faculty of Computer Since and Technology Object Oriented Programming

National University. Faculty of Computer Since and Technology Object Oriented Programming National University Faculty of Computer Since and Technology Object Oriented Programming Lec (8) Exceptions in Java Exceptions in Java What is an exception? An exception is an error condition that changes

More information

Informatica 3. Marcello Restelli. Laurea in Ingegneria Informatica Politecnico di Milano 9/15/07 10/29/07

Informatica 3. Marcello Restelli. Laurea in Ingegneria Informatica Politecnico di Milano 9/15/07 10/29/07 Informatica 3 Marcello Restelli 9/15/07 10/29/07 Laurea in Ingegneria Informatica Politecnico di Milano Structuring the Computation Control flow can be obtained through control structure at instruction

More information

OBJECT ORIENTED PROGRAMMING TYm. Allotted : 3 Hours Full Marks: 70

OBJECT ORIENTED PROGRAMMING TYm. Allotted : 3 Hours Full Marks: 70 I,.. CI/. T.cH/C8E/ODD SEM/SEM-5/CS-504D/2016-17... AiIIIII "-AmI u...iir e~ IlAULAKA ABUL KALAM AZAD UNIVERSITY TECHNOLOGY,~TBENGAL Paper Code: CS-504D OF OBJECT ORIENTED PROGRAMMING TYm. Allotted : 3

More information

Std 12 Lesson-10 Exception Handling in Java ( 1

Std 12 Lesson-10 Exception Handling in Java (  1 Ch-10 : Exception Handling in Java 1) It is usually understood that a compiled program is error free and will always successfully. (a) complete (b) execute (c) perform (d) accomplish 2) In few cases a

More information

Multitasking Multitasking allows several activities to occur concurrently on the computer. A distinction is usually made between: Process-based multit

Multitasking Multitasking allows several activities to occur concurrently on the computer. A distinction is usually made between: Process-based multit Threads Multitasking Multitasking allows several activities to occur concurrently on the computer. A distinction is usually made between: Process-based multitasking Thread-based multitasking Multitasking

More information

Concurrent Computing CSCI 201 Principles of Software Development

Concurrent Computing CSCI 201 Principles of Software Development Concurrent Computing CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline Threads Multi-Threaded Code CPU Scheduling Program USC CSCI 201L Thread Overview Looking

More information

Orbacus. JThreads/C++ Making Software Work Together TM. Version 2.0, January 2007

Orbacus. JThreads/C++ Making Software Work Together TM. Version 2.0, January 2007 TM Orbacus JThreads/C++ Version 2.0, January 2007 Making Software Work Together TM IONA Technologies PLC and/or its subsidiaries may have patents, patent applications, trademarks, copyrights, or other

More information

Data Abstraction and Specification of ADTs

Data Abstraction and Specification of ADTs CITS2200 Data Structures and Algorithms Topic 4 Data Abstraction and Specification of ADTs Example The Reversal Problem and a non-adt solution Data abstraction Specifying ADTs Interfaces javadoc documentation

More information

Java Programming: from the Beginning. Chapter 8 More Control Structures. CSc 2310: Principle of Programming g( (Java) Spring 2013

Java Programming: from the Beginning. Chapter 8 More Control Structures. CSc 2310: Principle of Programming g( (Java) Spring 2013 CSc 2310: Principle of Programming g( (Java) Spring 2013 Java Programming: from the Beginning Chapter 8 More Control Structures 1 Copyright 2000 W. W. Norton & Company. All rights reserved. 81 8.1 Exceptions

More information

Full file at Chapter 2 - Inheritance and Exception Handling

Full file at   Chapter 2 - Inheritance and Exception Handling Chapter 2 - Inheritance and Exception Handling TRUE/FALSE 1. The superclass inherits all its properties from the subclass. ANS: F PTS: 1 REF: 76 2. Private members of a superclass can be accessed by a

More information

CS61B, Spring 2003 Discussion #17 Amir Kamil UC Berkeley 5/12/03

CS61B, Spring 2003 Discussion #17 Amir Kamil UC Berkeley 5/12/03 CS61B, Spring 2003 Discussion #17 Amir Kamil UC Berkeley 5/12/03 Topics: Threading, Synchronization 1 Threading Suppose we want to create an automated program that hacks into a server. Many encryption

More information

Types, Values and Variables (Chapter 4, JLS)

Types, Values and Variables (Chapter 4, JLS) Lecture Notes CS 141 Winter 2005 Craig A. Rich Types, Values and Variables (Chapter 4, JLS) Primitive Types Values Representation boolean {false, true} 1-bit (possibly padded to 1 byte) Numeric Types Integral

More information

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE COURSE TITLE JAVA2 FOR PROGRAMMERS COURSE DURATION 14 Hour(s) of Interactive Training COURSE OVERVIEW With the Java2 for Programmers course, anyone

More information

Introduction to Java. Handout-3a. cs402 - Spring

Introduction to Java. Handout-3a. cs402 - Spring Introduction to Java Handout-3a cs402 - Spring 2003 1 Exceptions The purpose of exceptions How to cause an exception (implicitely or explicitly) How to handle ( catch ) an exception within the method where

More information

Threat Analysis Reporter

Threat Analysis Reporter Threat Analysis Reporter Ethernet Tap Installation For TAR-MSA Threat Analysis Reporter UPDATED: 02.29.08 8e6 Threat Analysis Reporter: Ethernet Tap Installation 2008 8e6 Technologies. All rights reserved.

More information

DISCLAIMER COPYRIGHT List of Trademarks

DISCLAIMER COPYRIGHT List of Trademarks DISCLAIMER This documentation is provided for reference purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this documentation, this documentation

More information

S.E. Sem. III [CMPN] Object Oriented Programming Methodology

S.E. Sem. III [CMPN] Object Oriented Programming Methodology S.E. Sem. III [CMPN] Object Oriented Programming Methodology Time : 3 Hrs.] Prelim Question Paper Solution [Marks : 80 Q.1(a) Write a program to calculate GCD of two numbers in java. [5] (A) import java.util.*;

More information

Microcat Authorisation Server (MAS ) User Guide

Microcat Authorisation Server (MAS ) User Guide Microcat Authorisation Server (MAS ) User Guide Contents Introduction... 2 Install Microcat Authorisation Server (MAS)... 3 Configure MAS... 4 License Options... 4 Internet Options... 5 Licence Manager...

More information

ECE 122. Engineering Problem Solving with Java

ECE 122. Engineering Problem Solving with Java ECE 122 Engineering Problem Solving with Java Lecture 24 Exceptions Overview Problem: Can we detect run-time errors and take corrective action? Try-catch Test for a variety of different program situations

More information

Bull DPS 7000 Operator's Guide

Bull DPS 7000 Operator's Guide File and Volume Management Bull DPS 7000 Operator's Guide Mirror Disks User's Guide GCOS 7 Software Subject : This document is intended for the operator and system administrator responsible for setting

More information

JThreads/C++ Version 2.0.0b1. IONA Technologies PLC

JThreads/C++ Version 2.0.0b1. IONA Technologies PLC JThreads/C++ Version 2.0.0b1 IONA Technologies PLC IONA, IONA Technologies, the IONA logo, Orbix, High Performance Integration, Artix, Mobile Orchestrator and Making Software Work Together are trademarks

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

JAVA EXAMPLES - SOLVING DEADLOCK

JAVA EXAMPLES - SOLVING DEADLOCK JAVA EXAMPLES - SOLVING DEADLOCK http://www.tutorialspoint.com/javaexamples/thread_deadlock.htm Copyright tutorialspoint.com Problem Description: How to solve deadlock using thread? Solution: Following

More information

Integrated Virtualization Manager. ESCALA Power7 REFERENCE 86 A1 41FF 08

Integrated Virtualization Manager. ESCALA Power7 REFERENCE 86 A1 41FF 08 Integrated Virtualization Manager ESCALA Power7 REFERENCE 86 A1 41FF 08 ESCALA Models Reference The ESCALA Power7 publications concern the following models: Bull Escala E1-700 / E3-700 Bull Escala E1-705

More information

SmartList Builder for Microsoft Dynamics GP 10.0

SmartList Builder for Microsoft Dynamics GP 10.0 SmartList Builder for Microsoft Dynamics GP 10.0 Including: SmartList Builder, Excel Report Builder, Navigation List Builder and Drill Down Builder Copyright: Manual copyright 2014 eone Integrated Business

More information

In this lab we will practice creating, throwing and handling exceptions.

In this lab we will practice creating, throwing and handling exceptions. Lab 5 Exceptions Exceptions indicate that a program has encountered an unforeseen problem. While some problems place programmers at fault (for example, using an index that is outside the boundaries of

More information

Web Server Project. Tom Kelliher, CS points, due May 4, 2011

Web Server Project. Tom Kelliher, CS points, due May 4, 2011 Web Server Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will develop a Web server in two steps. In the end, you will have built

More information

CSC System Development with Java. Exception Handling. Department of Statistics and Computer Science. Budditha Hettige

CSC System Development with Java. Exception Handling. Department of Statistics and Computer Science. Budditha Hettige CSC 308 2.0 System Development with Java Exception Handling Department of Statistics and Computer Science 1 2 Errors Errors can be categorized as several ways; Syntax Errors Logical Errors Runtime Errors

More information

CCM / Web-Reset. User Guide

CCM / Web-Reset. User Guide CCM / Web-Reset User Guide car.xit.iqvia.com User guide Version 1.0 1/12 Revisions Date Revision Object Rédaction Validation Approbation 2017-11-22 1.0 IQVIA Branding IQVIA 2017/01/09 1.0 Creation of document

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

JAVA Programming Language Homework VI: Threads & I/O

JAVA Programming Language Homework VI: Threads & I/O JAVA Programming Language Homework VI: Threads & I/O ID: Name: 1. When comparing java.io.bufferedwriter to java.io.filewriter, which capability exists as a method in only one of the two? A. Closing the

More information

Java Threads. COMP 585 Noteset #2 1

Java Threads. COMP 585 Noteset #2 1 Java Threads The topic of threads overlaps the boundary between software development and operation systems. Words like process, task, and thread may mean different things depending on the author and the

More information

Contents. 6-1 Copyright (c) N. Afshartous

Contents. 6-1 Copyright (c) N. Afshartous Contents 1. Classes and Objects 2. Inheritance 3. Interfaces 4. Exceptions and Error Handling 5. Intro to Concurrency 6. Concurrency in Java 7. Graphics and Animation 8. Applets 6-1 Copyright (c) 1999-2004

More information

COMP-202. Exceptions. COMP Exceptions, 2011 Jörg Kienzle and others

COMP-202. Exceptions. COMP Exceptions, 2011 Jörg Kienzle and others COMP-202 Exceptions Lecture Outline Exceptions Exception Handling The try-catch statement The try-catch-finally statement Exception propagation Checked Exceptions 2 Exceptions An exception is an object

More information

Concurrency and Java Programming

Concurrency and Java Programming Concurrency and Java Programming What is Concurrent Programming? Concurrent programming involves using features of the Java VM that allow parts of your program to run in parallel with each other. This

More information

Object Oriented Programming (II-Year CSE II-Sem-R09)

Object Oriented Programming (II-Year CSE II-Sem-R09) (II-Year CSE II-Sem-R09) Unit-VI Prepared By: A.SHARATH KUMAR M.Tech Asst. Professor JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY, HYDERABAD. (Kukatpally, Hyderabad) Multithreading A thread is a single sequential

More information

COE318 Lecture Notes Week 10 (Nov 7, 2011)

COE318 Lecture Notes Week 10 (Nov 7, 2011) COE318 Software Systems Lecture Notes: Week 10 1 of 5 COE318 Lecture Notes Week 10 (Nov 7, 2011) Topics More about exceptions References Head First Java: Chapter 11 (Risky Behavior) The Java Tutorial:

More information

CS 101 Fall 2005 Midterm 2 Name: ID:

CS 101 Fall 2005 Midterm 2 Name:  ID: This exam is open text book but closed-notes, closed-calculator, closed-neighbor, etc. Questions are worth different amounts (in particular, the final two questions are worth substantially more than any

More information

An overview of Java, Data types and variables

An overview of Java, Data types and variables An overview of Java, Data types and variables Lecture 2 from (UNIT IV) Prepared by Mrs. K.M. Sanghavi 1 2 Hello World // HelloWorld.java: Hello World program import java.lang.*; class HelloWorld { public

More information

CSC Java Programming, Fall Java Data Types and Control Constructs

CSC Java Programming, Fall Java Data Types and Control Constructs CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference

More information

JAVA. Lab 12 & 13: Multithreading

JAVA. Lab 12 & 13: Multithreading JAVA Prof. Navrati Saxena TA: Rochak Sachan Lab 12 & 13: Multithreading Outline: 2 What is multithreaded programming? Thread model Synchronization Thread Class and Runnable Interface The Main Thread Creating

More information

Do not turn to the next page until the start of the exam.

Do not turn to the next page until the start of the exam. Principles of Java Language with Applications, PIC20a E. Ryu Winter 2017 Final Exam Monday, March 20, 2017 3 hours, 8 questions, 100 points, 11 pages While we don t expect you will need more space than

More information

1 interface TemperatureSensor extends java.rmi.remote 2 { 3 public double gettemperature() throws java.rmi.remoteexception; 4 public void

1 interface TemperatureSensor extends java.rmi.remote 2 { 3 public double gettemperature() throws java.rmi.remoteexception; 4 public void 1 interface TemperatureSensor extends java.rmi.remote 2 { 3 public double gettemperature() throws java.rmi.remoteexception; 4 public void addtemperaturelistener ( TemperatureListener listener ) 5 throws

More information

Object Oriented Programming

Object Oriented Programming Object Oriented Programming Java lecture (10.2) Exception Handling 1 Outline Throw Throws Finally 2 Throw we have only been catching exceptions that are thrown by the Java run-time system. However, it

More information

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA 1. JIT meaning a. java in time b. just in time c. join in time d. none of above CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA 2. After the compilation of the java source code, which file is created

More information

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 2012 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information