CSE 110 ASU

Ace your homework & exams now with Quizwiz!

What is a constructor in java?

Creates an object from a class template but does not return a value

What is a for loop?

It repeats things like other programming statements and blocks of code automatically until it is false

Are classes public or private?

They can be both public and private

What is do while loop ?

This code is repeated until the condition becomes false.

What is a nested loop?

a loop inside another loop

What does the "Final" word do in Java?

a value that cannot be changed after it is created, a constant

what does a class contain in object oriented programming

constructors, methods, and variables

What does the syntax look like for a do while loop

do { Some code } while (condition);

What is the syntax for a for loop?

for(intial value; test condition; update;) { do some task; }

What is a while loop syntax?

int counter = 0 while (counter < someNum) { System.out.println(" Counter = " + counter); counter++; }

what is an example of a constructor in java?

public Staff (String firstname, String lastname) { //initialization of all key vairables }

What is an if/else statement?

test a certain condtion and stops when it finallly meets it

What is a method in java?

A block of code that performs a certain task

What is a class in coding

A blueprint of the building A class creates a custom data type which can be used within the code.


Related study sets

Chapter 49: Mythical Impressions: Program Music at the End of the Nineteenth Century

View Set

Chapter 9 Exam - Retirement Plans

View Set

strategic management smartbook 5

View Set

1. The Constitutional Powers of Government

View Set

Female Reproductive System Anatomy, Contraception

View Set

Art 100 exam 1: Art of ritual and Daily Life

View Set

AP Micro Exam review Comparative advantage MC

View Set

Biology- Blood Flow Through the Heart

View Set