Question: Java review: What is a constructor? When defining classes, how do you define the attributes? How about the setters & getters? If you need a

Java review:

What is a constructor?

When defining classes, how do you define the attributes? How about the setters & getters?

If you need a variable to keep track of the sum of things, what is that variable called?

What is the scope of a variable?

What is encapsulation, and how does it relate to data hiding?

Whats the difference between a class and an object?

What is a wrapper class? How do you use it, and why?

Give an example of creating a new instance of a Student class.

What are the different types of loops, and how do they work?

How should we decide what type of loop to use?

When you use an if-statement, how should you write the condition?

How does a switch-case statement work? What is required so the logic wont fall through?

When should you use an if-statement vs a switch-case statement?

What is a method, and describe the parts of a methods header.

How do you pass a variable to a method? How do you pass an array to a method? How do you pass an arrayList to a method?

What is method overloading?

How are fields in a class initialized?

What is an array and how does it work? How do you define an array?

How do you change values in an array? How do you initialize an array? (2 ways what are they?)

What is an arrayList and how does it work? How do you define an arrayList?

How do you add elements to an arrayList? Change? Delete?

What is the difference between an array and an arrayList?

What is a String? What is concatenation?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!