Java review

Ace your homework & exams now with Quizwiz!

What are keywords?

Words that Java already understands

What is a compile time error?

An error detected by the compiler

What is a syntax error?

An error in the specification of the program

What is a main method used for?

Testing the class

What is a class method?

A method that works on the class

what is an object method?

An object that works on the current object

What are methods?

Behaviors

What is a string literal?

Characters enclosed in starting and ending double quotes

What is an object?

Classes create objects, and the objects do the actual work in object oriented programming

What are fields?

Data or properties

What specifies the data or state for an object in Java?

Fields

What specifies the behavior for objects of a class in java?

Methods

What are getters/accessors?

Methods that get information from an object

What are setters/mutators?

Methods that set field values

What are constructors?

Ways to initialize the fields

How many objects can you create from a class in Java?

As many as you need

What is a class?

Defines what objects of the class need to know and do


Related study sets

Anatomy Final Review: Chapter 12

View Set

Marketing 351 Ole Miss Cousley Chapters 11 (Shuffle to avoid repeating of the same topics)

View Set

Essential Amino Acids - Structure to full name

View Set

Chapter 15 - Assessing head and neck - health assessment

View Set

Honors Physics Chapter 16 Static Electricity review

View Set

Dosage Calculations Metric Conversion

View Set