verified
1. in Java identifiers can only begin with? Letters, underscores,
dol- lar sign
2. Is Java a Functional Language, Procedural Object-Oriented
Language, Object-Oriented Language, or Logic
Language?
3. What does API stand for? Application
Programmer
Interface
4. What package needs to be imported to use the import java.util.Scanner;
scan- ner class?
5. What is Encapsulation? A mechanism of
wrapping the data
(variables) and code
acting on the data
(methods) together
as a single unit.
.................Declare
the
variables of a class as
pri- vate. Provide public
set- ter and getter
methods to modify and
view the vari- ables
values
6. What is the purpose of toString()? The purpose is to
give a readable
representation of the
object
, CSE 205 Exam 1 study guide with 100% correct answers |
verified
7. What is a constructor? A constructor is a
special method that is
used to cre- ate a new
object.
8. Define a constructor with two parameters int
x, y for aclass Point.A point object has an x and
y coordinate.
, CSE 205 Exam 1 study guide with 100% correct answers |
verified
public Point(int x, int
y){ this.x = x; this.y
= y;
}
9. The reference refers to the instance
of the object. this
10. What is the keyword that associates a
variable or method with the class rather static
than the object?
11. What is Software Engineering? An attempt to pro-
duce a repeatable
process for the
developmentand
management of
software projects. The
quality of the software is
a direct result of the
process we follow to
create it.
12. Explain the relationship between Small increases in
development and maintenance effort.
devel- opment ettort
can reduce
13. Which development method takes an object- maintenance ettort
oriented approach? Briefly describe this
Evolutionary
methods' steps.
Develop- ment:
Establish
Requirements
-What are the inputs
ex- pected by the
application and what