• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/28

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

28 Cards in this Set

  • Front
  • Back

Comments should

be insightful and explain what the instruction's intention is

A color image is broken down into individual pixels(points), each of which is represented by

3 values denoting the intensity of red, green, and blue in the image

In order to be accessible over a computer network, the computer needs its on

network address

The instruction: System.out.println("Hello World"); might be best commented as

//used to demonstrate an output message

A URL (Universal Resource Locator) specifies the address of

a document or other type of file on the internet

For a computer to communicate over the the internet, it must use

the combined TCP/IP protocol

6 bits can be used to represent ________distinct items or values

64

A Java program is best classified as:

software

Java is an example of

both high-level language and fourth generation language

Consider the following enumeration


enum Speed {FAST, MEDIUM, SLOW} ;

The name of the speed enumeration whose ordinal value is zero is FAST

If two variables contain aliases of the same object then

the object cannot be modified unless there's but a singe reference to it

Consider the following two lines of code. What can you say about s1 and s2?




String s1 = "testing" + "123";


String s2 = new String ("testing 123");

s1 and s2 are both references to different string objects

In Java, "instantiation" means

creating a new object of the class

In addition to their usage providing a mechanism to convert (to box) primitive data into objects, what else does the wrapper classes provide?

static constants

An "alias" is when

two different reference variables refer to the same physical object

An API is

an Application Programming Interface

In Java a variable may contain

a value or a reference

Java.text's NumberFormat class includes methods that

allow you to format currency, allow you to format percentages, round their display during the formatting process, but not truncate their display during the formatting process

Say you write a program that makes use of the Random class, but you fail to include an import statement for java.util.Random (or java.util.*). What will happen when you attempt to compile and run your program.

The program won't compile-you'll receive a syntax error about the missing class.

Instance data for a Java class

may be primitive types or objects

An example of passing message to a String where the message has a String parameter would occur in which of the following messages

equals

To define a class that would represent a car. which of the following definitions is most appropriate

public class Car

A class constructor usually defines

how an object is initialized

A variable whose scope is restricted to the method where it was declares is known as a

local variable

The behavior of a object is defined by the object's

methods

If a method does not not have a return statement, then

it must be a void method

Consider a Rational class designed to represent rational numbers as a pair of int's, along with methods reduce (to reduce the rational to simplest form), gcd (to find the greatest common divisor of two int's), as well as methods for addition, subtraction, multiplication, and division. Why should the reduce and gcd methods be declared to be private.

Because they will be only be called from methods inside of Rational

What happens if you declare a class constructor to have a void return type?

You'll likely receive a syntax error