The AP Java Subset. A Topics. Primitive Types. Operators. Topics. int double boolean

Size: px
Start display at page:

Download "The AP Java Subset. A Topics. Primitive Types. Operators. Topics. int double boolean"

Transcription

1 The AP Java Subset A Topics Topics Primitive Types Operators int double boolean +, -, *, /, % ++, -- = +=, -=, *=, /=, %= ==,!=, <, >, <=, >= &&,,!

2 Numeric Casts String Concatenation (int) (double) + will convert numbers to strings and invoke the tostring() method on objects Escape Sequences Input & Output \\ \ \n INPUT IS NOT TESTED Output is restricted to System.out.print and println Formatting output is not tested

3 Arrays Control Structures One-dimensional Arrays of primitive types & of objects Initialization of named arrays: int[] array = {1, 3, 6, 9}; if if/else while for return (do/while, switch, continue, break not tested) Method Overloading Classes Understand signature of method Depends on number, types & order of parameters Does not depend on return type of method Construct objects with new operator Supply constructor parameters Invoke accessor & modifier methods Modify existing classes Design own classes

4 Visibility Comments All classes will be public All instance variable will be private Methods, constructors and constants are either public or private NO protected // single line comments /* */ block comments No Javadoc comments Final & Static null & this final keyword is used for final block scope constants static final class scope constants static methods static final variables NO final parameters, final methods, final classes, static variables null reference is in the Java subset this is restricted to passing an implicit parameter in its entirety to another method (obj.method(this)) Descriptions such as the implicit parameter this

5 Super Constructors Use to invoke superclass constructor ex: super(args); Or to invoke superclass method ex: super.method(args); Be able to implement Initialize all instance variables Don t need to know default rules Extend & Implement Read and Understand extend classes implement interfaces Know inheritance!!! Be able to read definitions of interfaces and abstract classes Understand that the abstract methods need to be redefined for non-abstract classes Write interfaces or class declarations when given a general description of the interface or class

6 Equals Subclass to Superclass Know when to use == or.equals Objects: equals Identity: == No casting is needed to convert from a subclass to a superclass Do need to know class casts: ArrayList xx = new ArrayList(); yy = (yyclass)xx.get(i); Packages Exceptions import statement import package.subpackage.class; NullPointerException ArrayIndexOutOfBoundsException ArithmeticException ClassCastException IllegalArgumentException

7 Standard Library Methods java.lang.object java.lang.comparable java.lang.integer Integer(int value) //constructor intvalue java.lang.double Double(double value) //constructor doublevalue java.lang.string length substring indexof java.lang.math abs (for int and double) pow sqrt java.util.random nextint nextdouble java.util.arraylist size add get set remove

8 Two-dimensional Arrays AB Topics Ragged arrays are not tested int [][] x = new int[3][]; Don t need to know int[3][3] is an array of arrays Know that x[0].length is the number of columns in a rectangular two-dimensional array named x Abstract Classes Throwing Unchecked Exceptions AB students are expected to design own interfaces and abstract classes IllegalStateException NoSuchElementException

9 Standard Library Methods java.lang.object hashcode java.lang.comparable java.lang.integer Integer(int value) //constructor intvalue java.lang.double Double(double value) //constructor doublevalue java.lang.string length substring indexof java.lang.math abs (for int and double) pow sqrt java.util.random nextint nextdouble java.util.list add size get set iterator listiterator java.util.arraylist All List methods add remove

10 java.util.linkedlist addfirst addlast getfirst getlast removefirst removelast java.util.set add contains remove size iterator java.util.hashset java.util.treeset java.util.map put get remove containskey size keyset java.util.hashmap java.util.treemap java.util.iterator hasnext next remove Java.util.ListIterator add set

11 Online resources Acorn online Java API

AP Computer Science Java Subset

AP Computer Science Java Subset APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall

More information

AP Computer Science Java Subset

AP Computer Science Java Subset APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall

More information

Java Application Developer Certificate Program Competencies

Java Application Developer Certificate Program Competencies Java Application Developer Certificate Program Competencies After completing the following units, you will be able to: Basic Programming Logic Explain the steps involved in the program development cycle

More information

Generics. IRS W-9 Form

Generics. IRS W-9 Form Generics IRS W-9 Form Generics Generic class and methods. BNF notation Syntax Non-parametrized class: < class declaration > ::= "class" < identifier > ["extends" < type >] ["implements" < type list >]

More information

CS 111 Classes I 1. Software Organization View to this point:

CS 111 Classes I 1. Software Organization View to this point: CS 111 Classes I 1 Software Organization View to this point: Data Objects and primitive types Primitive types operators (+, /,,*, %). int, float, double, char, boolean Memory location holds the data Objects

More information

Specialized Programme on e-governance Application Development

Specialized Programme on e-governance Application Development Specialized Programme on e-governance Application Development A. NAME OF INSTITUTE B. NAME/TITLE OF THE COURSE C. COURSE DATES WITH DURATION IN WEEKS D. ELIGIBILITY CRITERIA FOR PARTICIPANTS: 1. EDUCATIONAL

More information

The Collections API 9/5/00 1. Lecture Objectives

The Collections API 9/5/00 1. Lecture Objectives The Collections API Mark Allen Weiss Copyright 2000 9/5/00 1 Lecture Objectives To see some bad design (Java 1.1) To see a better design (Java 1.2) To learn how to use the Collections package in Java 1.2.

More information

The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0

The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 The following applies to all exams: Once exam vouchers are purchased you have up to one year from the date of purchase to use it. Each voucher is valid for one exam and may only be used at an Authorized

More information

Java Interview Questions and Answers

Java Interview Questions and Answers 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java

More information

SL-110: Fundamentals of Java Revision 15 October Sun Educational Services Instructor-Led Course Description

SL-110: Fundamentals of Java Revision 15 October Sun Educational Services Instructor-Led Course Description Sun Educational Services Instructor-Led Course Description Fundamentals of Java SL-110 The Fundamentals of the Java course provides students, with little or no programming experience, with the basics of

More information

Specialized Programme on Web Application Development using Open Source Tools

Specialized Programme on Web Application Development using Open Source Tools Specialized Programme on Web Application Development using Open Source Tools Objective: At the end of the course, Students will be able to: Understand various open source tools(programming tools and databases)

More information

Specialized Programme on Web Application Development using Open Source Tools

Specialized Programme on Web Application Development using Open Source Tools Specialized Programme on Web Application Development using Open Source Tools A. NAME OF INSTITUTE Centre For Development of Advanced Computing B. NAME/TITLE OF THE COURSE C. COURSE DATES WITH DURATION

More information

Computer Programming I

Computer Programming I Computer Programming I COP 2210 Syllabus Spring Semester 2012 Instructor: Greg Shaw Office: ECS 313 (Engineering and Computer Science Bldg) Office Hours: Tuesday: 2:50 4:50, 7:45 8:30 Thursday: 2:50 4:50,

More information

D06 PROGRAMMING with JAVA

D06 PROGRAMMING with JAVA Cicles Formatius de Grau Superior Desenvolupament d Aplicacions Informàtiques D06 PROGRAMMING with JAVA Ch20 Data Structures I PowerPoint presentation, created by Angel A. Juan - ajuanp(@)gmail.com, for

More information

AP Computer Science A - Syllabus Overview of AP Computer Science A Computer Facilities

AP Computer Science A - Syllabus Overview of AP Computer Science A Computer Facilities AP Computer Science A - Syllabus Overview of AP Computer Science A Computer Facilities The classroom is set up like a traditional classroom on the left side of the room. This is where I will conduct my

More information

API for java.util.iterator. ! hasnext() Are there more items in the list? ! next() Return the next item in the list.

API for java.util.iterator. ! hasnext() Are there more items in the list? ! next() Return the next item in the list. Sequences and Urns 2.7 Lists and Iterators Sequence. Ordered collection of items. Key operations. Insert an item, iterate over the items. Design challenge. Support iteration by client, without revealing

More information

Course: Introduction to Java Using Eclipse Training

Course: Introduction to Java Using Eclipse Training Course: Introduction to Java Using Eclipse Training Course Length: Duration: 5 days Course Code: WA1278 DESCRIPTION: This course introduces the Java programming language and how to develop Java applications

More information

CSCI 253. Object Oriented Programming (OOP) Overview. George Blankenship 1. Object Oriented Design: Java Review OOP George Blankenship.

CSCI 253. Object Oriented Programming (OOP) Overview. George Blankenship 1. Object Oriented Design: Java Review OOP George Blankenship. CSCI 253 Object Oriented Design: Java Review OOP George Blankenship George Blankenship 1 Object Oriented Programming (OOP) OO Principles Abstraction Encapsulation Abstract Data Type (ADT) Implementation

More information

Maria Litvin Phillips Academy, Andover, Massachusetts. Gary Litvin Skylight Publishing, Andover, Massachusetts

Maria Litvin Phillips Academy, Andover, Massachusetts. Gary Litvin Skylight Publishing, Andover, Massachusetts Be Prepared for the Sixth Edition Computer Science Exam in Java Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Publishing, Andover, Massachusetts Skylight Publishing Andover,

More information

Self-test Java Programming

Self-test Java Programming Self-test Java Programming Document: e0883test.fm 22/01/2013 ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium TRAINING & CONSULTING INTRODUCTION TO THE SELF-TEST JAVA PROGRAMMING This test

More information

ArrayLists & List Computational Complexity

ArrayLists & List Computational Complexity ArrayLists & List Computational Complexity Generic Operations on a List n create an empty list n add(x) insert x at the end of the list n add(x, idx) inserts x into the list at the specified position n

More information

Lecture 4. The Java Collections Framework

Lecture 4. The Java Collections Framework Lecture 4. The Java s Framework Chapters 6.3-6.4-1 - Outline Introduction to the Java s Framework Iterators Interfaces Classes Classes - 2 - The Java s Framework We will consider the Java s Framework as

More information

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Developed By Brian Weinfeld Course Description: AP Computer

More information

Basic Programming and PC Skills: Basic Programming and PC Skills:

Basic Programming and PC Skills: Basic Programming and PC Skills: Texas University Interscholastic League Contest Event: Computer Science The contest challenges high school students to gain an understanding of the significance of computation as well as the details of

More information

c) Comments are areas of text ignored by the Java compiler.

c) Comments are areas of text ignored by the Java compiler. 1) Java applications a) A java application has a special method, called the main method, which is where the program will start. i) Each class can only have one main method. ii) You can tell eclipse which

More information

Motivation. of items. for (int i = 0; i < array.length; i++) /* do something with array[i] */ n We often want to access every item in a collection

Motivation. of items. for (int i = 0; i < array.length; i++) /* do something with array[i] */ n We often want to access every item in a collection Java Iterators Motivation We often want to access every item in a collection of items q We call this traversing or iterating q Example: array for (int i = 0; i < array.length; i++) /* do something with

More information

Lecture 4. The Java Collections Framework

Lecture 4. The Java Collections Framework Lecture 4. The Java s Framework Chapters 6.3-6.4-1 - Outline Introduction to the Java s Framework Iterators Interfaces, Classes and Classes of the Java s Framework - 2 - Outline Introduction to the Java

More information

Datastrukturer och standardalgoritmer i Java

Datastrukturer och standardalgoritmer i Java 1 (8) Datastrukturer och standardalgoritmer i Java Dokumentet listar ett urval av konstruktorer och metoder för några vanliga Javaklasser. Class ArrayList ArrayList() Constructs an empty list. void

More information

Chapter 20 ArrayLists. Java Collection Framework hierarchy. What is Data Structure? CS1: Java Programming Colorado State University

Chapter 20 ArrayLists. Java Collection Framework hierarchy. What is Data Structure? CS1: Java Programming Colorado State University Chapter 20 ArrayLists CS1: Java Programming Colorado State University Objectives q To explore the relationship between interfaces and classes in the Java Collections Framework hierarchy ( 20.2). q To use

More information

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program Free Java textbook available online "Thinking in Java" by Bruce Eckel, 4th edition, 2006, ISBN 0131872486, Pearson Education Introduction to the Java programming language CS 4354 Summer II 2015 The third

More information

EXPLICIT AND AUTOMATIC STRING CONVERSION IN JAVA

EXPLICIT AND AUTOMATIC STRING CONVERSION IN JAVA EXPLICIT AND AUTOMATIC STRING CONVERSION IN JAVA Data with other data types can be converted to String using explicit and automatic ways in Java. Explicit String conversion ways include: Use of the tostring()

More information

Reading a Text File. Reading and Writing Text Files Exceptions. Testing for more input. Example: Count Words

Reading a Text File. Reading and Writing Text Files Exceptions. Testing for more input. Example: Count Words Reading a Text File Reading and Writing Text Files Exceptions 15-121 Fall 2010 Margaret Reid-Miller A Scanner object can be connected to many input sources: keyboard, file, network, string To read a text

More information

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013 Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper

More information

Java Programming Language

Java Programming Language Lecture 1 Part II Java Programming Language Additional Features and Constructs Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Subclasses and

More information

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program

Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program Free Java textbook available online "Thinking in Java" by Bruce Eckel, 4th edition, 2006, ISBN 0131872486, Pearson Education Introduction to the Java programming language CS 4354 Summer II 2014 Jill Seaman

More information

Generic Types and the Java Collections Framework. Lecture 15 CS2110 Fall 2011

Generic Types and the Java Collections Framework. Lecture 15 CS2110 Fall 2011 Generic Types and the Java Collections Framework Lecture 15 CS2110 Fall 2011 Generic Types When using a collection (e.g., LinkedList, HashSet, HashMap), we generally have a single type T of elements that

More information

CS 335 Java Programming Inheritance

CS 335 Java Programming Inheritance CS 335 Java Programming Inheritance Java: Object-Oriented Programming Inheritance: superclasses and subclasses Polymorphism: abstract and concrete classes Dynamic binding Multiple inheritance via Interfaces

More information

Data Structures in the Java API

Data Structures in the Java API Data Structures in the Java API Vector From the java.util package. Vectors can resize themselves dynamically. Inserting elements into a Vector whose current size is less than its capacity is a relatively

More information

Chapter 13 - Inheritance

Chapter 13 - Inheritance Goals Chapter 13 - Inheritance To learn about inheritance To understand how to inherit and override superclass methods To be able to invoke superclass constructors To learn about protected and package

More information

Utility Classes. Date Test. java.util.date. java.util.calendar. java.util.calendar. Department of Computer Science 1

Utility Classes. Date Test. java.util.date. java.util.calendar. java.util.calendar. Department of Computer Science 1 COMP209 Object Oriented Programming Utility Classes Mark Hall Date Calendar Math Random String StringBuffer Parsing strings Utility Classes Java gives us a number of small utility classes that can be useful

More information

Contents. 9-1 Copyright (c) 1999-2004 N. Afshartous

Contents. 9-1 Copyright (c) 1999-2004 N. Afshartous Contents 1. Introduction 2. Types and Variables 3. Statements and Control Flow 4. Reading Input 5. Classes and Objects 6. Arrays 7. Methods 8. Scope and Lifetime 9. Utility classes 10. Introduction to

More information

Chapter 2: Elements of Java

Chapter 2: Elements of Java Chapter 2: Elements of Java Basic components of a Java program Primitive data types Arithmetic expressions Type casting. The String type (introduction) Basic I/O statements Importing packages. 1 Introduction

More information

java Features Version April 19, 2013 by Thorsten Kracht

java Features Version April 19, 2013 by Thorsten Kracht java Features Version April 19, 2013 by Thorsten Kracht Contents 1 Introduction 2 1.1 Hello World................................................ 2 2 Variables, Types 3 3 Input/Output 4 3.1 Standard I/O................................................

More information

DM550 Introduction to Programming part 2. Jan Baumbach.

DM550 Introduction to Programming part 2. Jan Baumbach. DM550 Introduction to Programming part 2 Jan Baumbach jan.baumbach@imada.sdu.dk http://www.baumbachlab.net PROJECT 2 Organizational Details The project has to be passed to pass the course It has to be

More information

Collections and iterators

Collections and iterators Objects First With Java A Practical Introduction Using BlueJ Grouping objects Collections and iterators 2.0 Concepts covered so far Abstraction Modularization Classes define types Class and object diagrams

More information

JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4

JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4 JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4 NOTE: SUN ONE Studio is almost identical with NetBeans. NetBeans is open source and can be downloaded from www.netbeans.org. I

More information

CSC207 - Arrays, Inheritance, Generic Types

CSC207 - Arrays, Inheritance, Generic Types CSC207 - Arrays, Inheritance, Generic Types Ilir Dema Summer 2016 What is an array? An array is an arrangement of elements of the same type at equally spaced addresses in computer memory. Algonquin Radio

More information

Introduction to Java Lecture Notes. Ryan Dougherty redoughe@asu.edu

Introduction to Java Lecture Notes. Ryan Dougherty redoughe@asu.edu 1 Introduction to Java Lecture Notes Ryan Dougherty redoughe@asu.edu Table of Contents 1 Versions....................................................................... 2 2 Introduction...................................................................

More information

What s Wrong with This?

What s Wrong with This? More Sophisticated Behaviour 2 Using library classes to implement more advanced functionality. Also class (static( static) ) fields. What s Wrong with This? class Notebook private ArrayList notes;

More information

Computing Concepts with Java Essentials

Computing Concepts with Java Essentials 2008 AGI-Information Management Consultants May be used for personal purporses only or by libraries associated to dandelon.com network. Computing Concepts with Java Essentials 3rd Edition Cay Horstmann

More information

Quick Reference AP Computer Science A

Quick Reference AP Computer Science A Quick Reference AP Computer Science A 2011 The College Board. Visit the College Board on the Web: www.collegeboard.org. Content of Appendixes Appendix A......................................... Java Quick

More information

Concrete collections in Java library. Java Collection framework: On concrete collections and their implementation. LinkedList: doubly-linked list

Concrete collections in Java library. Java Collection framework: On concrete collections and their implementation. LinkedList: doubly-linked list Concrete collections in Java library Java Collection framework: On concrete collections and their implementation 1 ArrayList: indexed sequence that grows/shrinks dynamically LinkedList: ordered sequence

More information

Computer Programming 2 Course Syllabus 2015-2016

Computer Programming 2 Course Syllabus 2015-2016 Computer Programming 2 Course Syllabus 2015-2016 Curricular Page(s) CR1 The course teaches students to design and implement computer-based solutions to problems. 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,

More information

More sophisticated behaviour

More sophisticated behaviour Objects First With Java A Practical Introduction Using BlueJ More sophisticated behaviour Using library classes to implement some more advanced functionality 2.0 Main concepts to be covered Using library

More information

RMI Client Application Programming Interface

RMI Client Application Programming Interface RMI Client Application Programming Interface Java Card 2.2 Java 2 Platform, Micro Edition Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 June, 2002 Copyright 2002 Sun

More information

CHAPTER 11 Hashing Objectives

CHAPTER 11 Hashing Objectives CHAPTER 11 Hashing Objectives To know what hashing is for ( 113) To obtain the hash code for an object and design the hash function to map a key to an index ( 114) To handle collisions using open addressing

More information

Motivation. We often want to access every item in a data structure or collection in turn

Motivation. We often want to access every item in a data structure or collection in turn Topic 13 Iterators Motivation We often want to access every item in a data structure or collection in turn We call this traversing or iterating over or stepping through or visiting every item in the data

More information

Lecture 4. The Java Collections Framework

Lecture 4. The Java Collections Framework Lecture 4. The Java s Framework Chapters 6.3-6.4-1 - The Java s Framework We will consider the Java s Framework as a good example of how apply the principles of objectoriented software engineering (see

More information

RenderCAD S.r.l. Formazione

RenderCAD S.r.l. Formazione Descrizione This course teaches participants how to develop Java programs. The course focuses on teaching the core Java language (J2SE), including essential object-oriented principles. In addition to Java,

More information

Java Collections Framework. 21 July 2016 OSU CSE 1

Java Collections Framework. 21 July 2016 OSU CSE 1 Java Collections Framework 21 July 2016 OSU CSE 1 Overview The Java Collections Framework (JCF) is a group of interfaces and classes similar to the OSU CSE components The similarities will become clearly

More information

Lecture 33: Iterators and String Buffer

Lecture 33: Iterators and String Buffer Lecture 33: Iterators and String Buffer Last time: 1. Midterm 2 Review 4/18 Today 1. Iterators 2. String Buffer 3. Introducing inheritance Iterators Special objects for iterating through elements in collection

More information

CS 106 Introduction to Computer Science I

CS 106 Introduction to Computer Science I CS 106 Introduction to Computer Science I 04 / 06 / 2015 Instructor: Michael Eckmann Today s Topics Comments and/or Questions? Let's finish Pet/Dog/Cat/TalkingDog classes Overriding methods Abstract New

More information

AP Computer Science A Syllabus

AP Computer Science A Syllabus Course Overview AP Computer Science A Syllabus AP Computer Science A is a course that takes an object oriented and problem solving approach to developing Java programs. It emphasizes object oriented concepts

More information

OOP A Deeper Look. Iterators, The Collection Hierarchy

OOP A Deeper Look. Iterators, The Collection Hierarchy OOP A Deeper Look 4B Iterators, The Collection Hierarchy 1 Iterating over a list SinglyLinkedList list = new SinglyLinkedList();... for (int i=0; i

More information

! It has two basic attributes:

! It has two basic attributes: Review: java.util.arraylist ArrayList! data:! size: 4! Class #07: Implementing the ArrayList ADT Software Design III (CS 340): M. Allen, 10 Feb. 16! A concrete implementation of the List interface/adt,

More information

Array-Based Lists. Lists

Array-Based Lists. Lists Array-Based Lists Collections and ArrayIntList Reading: RS Ch. 15 slides created by Marty Stepp http://www.cs.washington.edu/143/ Modified by Sarah Heckman Lists list: a collection storing an ordered sequence

More information

Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition

Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition Java 6 'th edition Concepts INTERNATIONAL STUDENT VERSION CONTENTS PREFACE vii SPECIAL FEATURES xxviii chapter i INTRODUCTION 1 1.1 What Is Programming? 2 J.2 The Anatomy of a Computer 3 1.3 Translating

More information

Java Programming Fundamentals

Java Programming Fundamentals Lecture 1 Part I Java Programming Fundamentals Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Introduction to Java We start by making a few

More information

10266A: Programming in C# with Microsoft Visual Studio 2010

10266A: Programming in C# with Microsoft Visual Studio 2010 10266A: Programming in C# with Microsoft Visual Studio 2010 Course Overview The course focuses on the C# program structure, language syntax, and implementation details with.net Framework 4.0. This course

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. For the question(s) below, assume values is an int array that is currently filled to capacity,

More information

Handout 1. Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner.

Handout 1. Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner. Handout 1 CS603 Object-Oriented Programming Fall 15 Page 1 of 11 Handout 1 Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner. Java

More information

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O 1 Sending Output to a (Text) File import java.util.scanner; import java.io.*; public class TextFileOutputDemo1 public static void

More information

Arrays And ArrayLists

Arrays And ArrayLists Arrays And ArrayLists "Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. " - S. Kelly-Bootle AP Computer Science Arrays in Java 1 Arrays

More information

This class allows the random movement of the file pointers. The file pointer can be moved back and forth.

This class allows the random movement of the file pointers. The file pointer can be moved back and forth. RandomAccessFile This class allows the random movement of the file pointers. The file pointer can be moved back and forth. Constructor: RandomAccessFile(String name, String mode) Creates a random access

More information

More sophisticated behaviour

More sophisticated behaviour Objects First With Java A Practical Introduction Using BlueJ More sophisticated behaviour Using library classes to implement some more advanced functionality 2.0 Main concepts to be covered Using library

More information

(e) none of the above.

(e) none of the above. 1 The default value of a static integer variable of a class in Java is, (a) 0 (b) 1 (c) Garbage value (d) Null (e) -1 2 What will be printed as the output of the following program? public class testincr

More information

Part I:( Time: 90 minutes, 30 Points)

Part I:( Time: 90 minutes, 30 Points) Qassim University Deanship of Educational Services Preparatory Year Program- Computer Science Unit Final Exam - 1434/1435 CSC111 Time: 2 Hours + 10 Minutes 1 MG Student name: Select the correct choice:

More information

Introduction to Java CS 1124, Media Computation November 10, 2008 Steve Harrison

Introduction to Java CS 1124, Media Computation November 10, 2008 Steve Harrison Introduction to Java CS 1124, Media Computation November 10, 2008 Steve Harrison DrJava? DrJava is a free integrated development environment for doing Java programming From Rice University It is written

More information

Java SE 8 Programming

Java SE 8 Programming Oracle University Contact Us: 1.800.529.0165 Java SE 8 Programming Duration: 5 Days What you will learn This Java SE 8 Programming training covers the core language features and Application Programming

More information

Computer Science III Advanced Placement G/T [AP Computer Science A] Syllabus

Computer Science III Advanced Placement G/T [AP Computer Science A] Syllabus Computer Science III Advanced Placement G/T [AP Computer Science A] Syllabus Course Overview This course is a fast-paced advanced level course that focuses on the study of the fundamental principles associated

More information

Iteration CHAPTER 6. Topic Summary

Iteration CHAPTER 6. Topic Summary CHAPTER 6 Iteration TOPIC OUTLINE 6.1 while Loops 6.2 for Loops 6.3 Nested Loops 6.4 Off-by-1 Errors 6.5 Random Numbers and Simulations 6.6 Loop Invariants (AB only) Topic Summary 6.1 while Loops Many

More information

JAVA.UTIL.SCANNER CLASS

JAVA.UTIL.SCANNER CLASS JAVA.UTIL.SCANNER CLASS http://www.tutorialspoint.com/java/util/java_util_scanner.htm Copyright tutorialspoint.com Introduction The java.util.scanner class is a simple text scanner which can parse primitive

More information

CMSC 202H. ArrayList, Multidimensional Arrays

CMSC 202H. ArrayList, Multidimensional Arrays CMSC 202H ArrayList, Multidimensional Arrays What s an Array List ArrayList is a class in the standard Java libraries that can hold any type of object an object that can grow and shrink while your program

More information

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 The Java Type System By now, you have seen a fair amount of Java. Time to study in more depth the foundations of the language,

More information

Scanner. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit.

Scanner. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit. Scanner The Scanner class is intended to be used for input. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit. For example, suppose the input

More information

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE

BHARATHIAR UNIVERSITY: COIMBATORE CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++ LANGUAGE Certificate in Advanced Programming - C++ Language Page 1 of 7 BHARATHIAR UNIVERSITY: COIMBATORE 641046 CENTRE FOR COLLABORATION OF INDUSTRY AND INSTITUTIONS(CCII) CERTIFICATE IN ADVANCED PROGRAMMING C++

More information

Object Oriented Design with UML and Java Part VII: Java Collection Classes

Object Oriented Design with UML and Java Part VII: Java Collection Classes Object Oriented Design with UML and Java Part VII: Java Collection Classes Copyright David Leberknight and Ron LeMaster. Version 2011 Collection Classes A collection is a grouping of objects, usually of

More information

Introduction to Java

Introduction to Java Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high

More information

Outline. Inheritance. Abstract Classes Interfaces. Class Extension Overriding Methods Inheritance and Constructors Polymorphism.

Outline. Inheritance. Abstract Classes Interfaces. Class Extension Overriding Methods Inheritance and Constructors Polymorphism. Outline Inheritance Class Extension Overriding Methods Inheritance and Constructors Polymorphism Abstract Classes Interfaces 1 OOP Principles Encapsulation Methods and data are combined in classes Not

More information

TRUE / FALSE MULTIPLE CHOICE

TRUE / FALSE MULTIPLE CHOICE CS 111 Exam 3 FORM A TRUE / FALSE 1. If you write a tostring method for a class, it can be invoked automatically to output the string generated by that method. T 2. You can change the contents of a String

More information

,!7IA3C1-dcahfj!:t;K;k;K;k. Addison-Wesley s JavaScript Reference Card. Kathleen M. Goelz and Carol J. Schwartz, Rutgers University VARIABLES

,!7IA3C1-dcahfj!:t;K;k;K;k. Addison-Wesley s JavaScript Reference Card. Kathleen M. Goelz and Carol J. Schwartz, Rutgers University VARIABLES Addison-Wesley s JavaScript Reference Card Kathleen M. Goelz and Carol J. Schwartz, Rutgers University Javascript: A scripting language designed to be integrated into HTML code to produce enhanced, dynamic,

More information

AFF 826. Sub. Code 4BSO1C1. Sp2. B.Sc. DEGREE EXAMINATION, NOVEMBER First Semester. Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING

AFF 826. Sub. Code 4BSO1C1. Sp2. B.Sc. DEGREE EXAMINATION, NOVEMBER First Semester. Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING Sp2 AFF 826 Sub. Code 4BSO1C1 B.Sc. DEGREE EXAMINATION, NOVEMBER 2015 First Semester Software FUNDAMENTALS OF COMPUTERS AND C PROGRAMMING (CBCS 2014 onwards) Time : 3 Hours Maximum : 75 Marks Part A (10

More information

Java (12 Weeks) Introduction to Java Programming Language

Java (12 Weeks) Introduction to Java Programming Language Java (12 Weeks) Topic Lecture No. Introduction to Java Programming Language 1 An Introduction to Java o Java as a Programming Platform, The Java "White Paper" Buzzwords, Java and the Internet, A Short

More information

Duration: 5 days Price: $2595 *California residents and government employees call for pricing.

Duration: 5 days Price: $2595 *California residents and government employees call for pricing. Java Programming Duration: 5 days Price: $2595 *California residents and government employees call for pricing. Course Description: This hands on course introduces experienced programmers to Java technology

More information

8/31/2012. Object Oriented Software Development. C# classes. C# example class code

8/31/2012. Object Oriented Software Development. C# classes. C# example class code Object Oriented Software Development 3. Creating C# classes C# classes Create an OO program by writing classes Need to understand structure and syntax of C# classes Programming language syntax is the set

More information

Using and Programming Generics in J2SE 5.0

Using and Programming Generics in J2SE 5.0 Page 1 of 6 http://java.sun.com/developer/technicalarticles/j2se/generics/ Feb 07, 2005 Article Using and Programming Generics in J2SE 5.0 By Qusay H. Mahmoud, October 2004 A Java collection is a flexible

More information

Fundamentals of Java Programming

Fundamentals of Java Programming Fundamentals of Java Programming This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and exclusive use by instructors

More information

El Dorado Union High School District Educational Services

El Dorado Union High School District Educational Services El Dorado Union High School District Course of Study Information Page Course Title: ACE Computer Programming II (#495) Rationale: A continuum of courses, including advanced classes in technology is needed.

More information

Exam objectives. Java Certification - Week 2. Operators and Assignments. Chris Harris. Overview. Exam objectives (continued)

Exam objectives. Java Certification - Week 2. Operators and Assignments. Chris Harris. Overview. Exam objectives (continued) Exam objectives Java Certification - Week 2 Operators and Assignments Chris Harris Determine the result of applying any operator,including assignment operators,instance of,and casts to operands of any

More information

Basic Java Constructs and Data Types Nuts and Bolts. Looking into Specific Differences and Enhancements in Java compared to C

Basic Java Constructs and Data Types Nuts and Bolts. Looking into Specific Differences and Enhancements in Java compared to C Basic Java Constructs and Data Types Nuts and Bolts Looking into Specific Differences and Enhancements in Java compared to C 1 Contents Hello World Program Statements Explained Java Program Structure in

More information