Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

Java - Chapter 1 terms- Questions and Answers| Latest Update

Document preview thumbnail
Preview 2 out of 7 pages

Java - Chapter 1 terms- Questions and Answers| Latest Update

Content preview

Java - Chapter 1 terms- Questions and
Answers| Latest Update
Object-oriented programming (OOP) ✔️✔️OOP is a programming methodology that views a
program as similarly consisting of objects that can act alone or interact with one another. An
object in a program - that is a software object - might represent a real-world object, or it might
be an abstaction.



Attributes ✔️✔️An object has characteristics, or attributes. For example, an automobile object
might have attributes, such as its name, its current speed, and its fuel level.



State ✔️✔️The values of an object's attributes give the object a state.



Behaviors ✔️✔️The actions that an object can take are called behaviors. AS we saw earlier, each
behavior is defied by a piece of Java code called a method.



Class ✔️✔️A class defines s kind of object; it is a blueprint for creating objects.



Encapsulation ✔️✔️Encapsulation sounds as though it means putting things in to a capsule or, to
say it another way, packaging things up. This intuition is basically correct. The most important
part of encapsulation, however, is not simply that things are put into a capsule, but that only
part of what is in the capsule is visible. When you produce a piece of software, you should
describe it in a way that tells other programmers how to use it, but that omits all the details of
how the software program works.



Information hiding ✔️✔️Note that encapsulation hides the fine detail of what is inside the
capsule. For this reason, encapsulation is often called information hiding.



Polymorphism ✔️✔️Polymorphism comes from a Greek word meaning 'many forms.' the basic
idea of polymorphism is that it allows the same program instruction to mean different things in

, different contexts. Polymorphism commonly occurs in English, and its use in a programing
language makes the language more like a human language. For example, the English insturction
"Go play your favorite sport" means different things to different people. In Java, polymorphism
means htat one method name, used as an insturcito, can cause different actions, depending on
the kinds of objects that perform the action. For example, a method named showOutput mgiht
display the data in a nobject. But hte number of data items it displays and their format depend
on the kind of object that carries out hte action.



Inheritance ✔️✔️Inheritance is a way of organizing classes. You can define common attributes
and behaviors once and have them apply to a whole collection of classes. By defining a general
class, you can use inheritance later to define specialized classes that add to or revise the details
of the general class.



Algorithm ✔️✔️An algorithm is a set of instructions for solving a problem, to qualify as an
algorithm, the direcitons must be expressed so completely and so recisely that somebody can
follow them without having to fill in any details or make any decisions that are not fully
specified in the instructions.



Pseudocode ✔️✔️Pseudocode is a combination of English and a programming language



Bug ✔️✔️A mistake in a program is called a bug



Debugging ✔️✔️The process of eliminating mistakes in the program is called debugging



Syntax Error ✔️✔️A syntax error is a grammatical mistake in the program.



Run-time error ✔️✔️An error that is detected when the program is run is called a run-time error



Logic error ✔️✔️if the underlying algorithm for the program ccontains a mistake, or if you write
something in Java that is syntatically correct but logically wrong, but will produce incorrect
output, the program contains a logic error

Document information

Uploaded on
March 21, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$9.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KateJones
4.8
(12)
Sold
31
Followers
0
Items
5707
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions