Question: PLEASE ANSWER THE QUESTIONS AND SUMMARIZE EACH UNIT Unit 1 What are the rules for identifier names. How do you include comments in your code?

PLEASE ANSWER THE QUESTIONS AND SUMMARIZE EACH UNIT

Unit 1

What are the rules for identifier names.

How do you include comments in your code?

What do the following escape sequences mean in Java: \\, \, , \t?

What is the difference between System.out.print() verses System.out.println()?

Know the basic structure and syntax of a Java program.

Know the 4 parts to a method header. Be able to write a complete method (header and body) and know the syntax for calling a method.

What is the benefit of using methods in a program?

Unit 2

Know the 4 primitive data types we discussed in class and how to represent each data type.

Know how string concatenation works in Java.

Know how to declare variables in Java.

Know the naming conventions for variables, methods, and classes.

What is the difference between declaring a variable and initializing a variable?

How do you get user input into your program? Know how a Scanner works in Java. What methods can you call on a Scanner object to read user input?

What is an import statement and where do they go in your code? What do you need to import to use a Scanner?

Know the syntax for writing a for loop.

Know all the mathematical operators in Java and the order of precedence.

What is the remainder operator and how does it work?

What is integer division?

Know how to write a nested for loop.

Know how to declare variables and assign values to variables.

What is casting? Know the syntax for casting a variable.

Unit 3

Know how to use the following methods from the Math class: abs(), pow(), sqrt(), random().

What is the difference between a static and non-static method? How do you call a static method? How do you call a non-static method?

What is an overloaded method? Give an example of an overloaded method. How do you know which version of an overloaded method will be invoked?

Know how to use the following methods from the String class: length(), substring, indexOf().

What is the difference between a primitive data type and a reference type? Can you give examples of each? How do the two types differ in terms of memory space?

What is the difference between formal and actual parameters?

Know how to return a values from a method. Know the syntax of the return statement.

Unit 4

What is the difference between a class and an object?

What is a constructor? When does a constructor get invoked? What is the syntax for writing a constructor? How many constructors can a class have?

Know how to write a basic class that represents an object which includes: defining attributes, writing constructor, getters/setters, the toString method.

What is a reference in Java? Know what can happen if you have 2 references referring to the same object in Java.

What are accessor and mutator methods?

What is the syntax for the this keyword? Why do we use the this keyword?

What is data encapsulation? How do you encapsulate your data in your code?

Know how to create an object and invoke a method on an object.

Unit 5

Know your relational operators: >, <, >=, <=, !=, ==.

Know how to write Boolean expressions and join Boolean expressions with AND (&&) and OR(||).

Know how to evaluate Boolean expressions.

What is the difference between the == and the equals() method? When should you use == verses equals()?

What is DeMorgans law and how do you apply DeMorgans law to a Boolean expression?

Know how to write if/else if/ else statements. What is the difference between using curly braces {} in the body of an if statement verses not using curly braces {}. How does curly braces change how the code is executed?

Know how to write while loops.

Know how to generate a random number using Math.random().

Unit 6

What is an array? When would you use an array? How do you declare an array? How do you access an element in an array?

How to you traverse an array (go through every element)?

What is the difference between finding the length of a string verses finding the length of an array?

Know some common array algorithms: find the max, find the min, count how many times a number appears in an array, sum the elements of an array, swap elements in an array.

How do you create an array of objects? How do you call a method on an object in an array?

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!