Data Structures and Algorithms in Java Chapter 1: Overview

About this set

Created by:

LaToyaNicole  on July 7, 2012

Subjects:

Java, Programming

Description:

Created form my notes on Data Structures and Algorithms Second Edition by Robert Lafore

Log in to favorite or report as inappropriate.
Pop out
No Messages

You must log in to discuss this set.

Data Structures and Algorithms in Java Chapter 1: Overview

What is a data structure?
An arrangement of data inside a computers memory or a disk.
1/21
Preview our new flashcards mode!

Study:

Cards

Speller

Learn

Test

Scatter

Games:

Scatter

Space Race

Tools:

Export

Copy

Combine

Embed

Order by

Terms

Definitions

What is a data structure? An arrangement of data inside a computers memory or a disk.
Name 5 data types BLASH: binary trees, linked lists, arrays, stacks, hash tables
What do algorithms do? Manipulate the data in data structures in various ways such as sorting.
What is real-world storage data? Data structure storage that describes physical entities external to the computer. Accessed by a programs user.
What are programmer's tools? Data structure storage that is accessed by the program itself. Ex - stacks and queues.
What is real-world modeling? Data structures that directly model real-world situations...think graphs.
What is an object? A software bundle of variables and related methods.
What is a class? A blueprint that defines an objects variables and methods.
The keyword "new" is used to do what? Create a new object in Java.
An object is often referred to as: An instance of a class.
object.method(); is and example of Invoking a method for a specific object.
Execution of the program starts where? main()
To create an object in Java you must do two things: 1. Use the keyword "new"
2. Store a reference to the object in a variable that is the same type as the class.
So:
Object = new ClassReference();
How do other parts of your program interact with objects? By interacting with an objects methods
What is a constructor? A special method that is called automatically whenever a new object is created. It prepares the object for use.
How is the constructor named? It has the same name as the class it resides in.
A field of method that is private can only be accessed by Methods that are apart of the same class.
Any outside entity that wants to access data in a class can do so by: Using a method of that class.
What must be added to all input methods for them to work? throws IOException
What does the charAt() method do? Returns a character at the specific position in the string object.
What does the parse.Int() method do? Converts the string type into an integer.

First Time Here?

Welcome to Quizlet, a fun, free place to study. Try these flashcards, find others to study, or make your own.

Set Champions

There are no high scores or champions for this set yet. You can sign up or log in to be the first!