ITSC 1213

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The file extension of a Java source code file is?

.class

What javadoc tag is used to specify the writer of the class source code?

@author

Where do you type javadoc comments?

Above each method heading

A reference variable will hold a(n)?

Address

The name of your source code file must?

Be the exact same as the public class in the file

What is the name of the IDE we are using in lecture and lab?

BlueJ

A java project is a collection of?

Classes

Which method is used to build an object?

Constructor Method

What java operator allows you to access public methods?

Dot operator

The term for declaring the fields of a class and methods that change the values of these fields is in one class definition file is?

Encapsulation

A class is an object?

False

Fields and variables are the same thing?

False

In a class definition file, each method must have a different name?

False

Java is a compiled language and the compiler produces an executable?

False

More than one reference variable can hold the address of an object?

False

Once an object is created, the fields should not change their values?

False

Once an object is created, you can call the constructor method again to change the value of the fields?

False

You can only create one instance of a class?

False

What keyword is used to declare a constant field?

Final

What must you include in the subject line of all emails to Lehmann?

ITSC 1213 - 001

Ternary Operator minVal = (a < b) ? a : b;

If a is less than b, minVal is a, else minVal is b

Where does execution of a Java application start?

In public static void main in a public class

The debugger helps you locate what type of error?

Local errors

In order to use the BlueJ debugger, your code?

Must have no syntax errors

Another name for a set() method is a?

Mutator Method

What operator is used to create object from class definitions?

New

What is the return type of the constructor method of a class?

No return type is allowed

If your method is reading input from one input stream only, how many Scanner objects are needed?

Only one

When the address of an object is not stored in any reference variable, that object is known as a(n)?

Orphan

Where are all fields declared?

Outside of any method

The two categories of data types in Java are?

Primitive and Reference

What class is pre-written and used to read input?

Scanner

By convention, all class names?

Start with an uppercase letter, and then use camel notation

Which debugger command allows you to go into the code at a method call?

Step into

What built in class is used to manage sequences of characters?

String

Which of the following is not a Java primitive data type?

String

What built in class is used to manipulate and change sequences of characters?

StringBuilder

What parameter do you send to the constructor of the Scanner class to indicate you will use keyboard input?

System.in

A class is a?

Template

What are the javadoc comments used for?

To provide inline comments

What is the purpose of the toString() method?

To return a textual representation of the state of an object

A Java symbolic constant must be assigned a value when it is declared?

True

Both fields and local variables can be declared as final?

True

Every object must have a name?

True

Fields are usually given private access?

True

If you do not write a constructor method, Java provides one for you?

True

To use the debugger in BlueJ, your class file must be compiled?

True

What does immutable mean?

Unchangeable

What is the return data type of the String class equals() Method?

boolean

What is the return type of the String class compareTo() Method?

int


संबंधित स्टडी सेट्स

chapter 12: databases and database management systems

View Set

CWTS-10-Wireless LAN Site Survey Basics

View Set

Professional Education Test 5 pre

View Set

CS173 - Chapter 17: Proof by Contradiction

View Set

AMSCO Chapter 20-22 quiz questions

View Set

Statistics (1st midterm) Lessons 1.5/1.6/2.2/2.3/3.2/3.3

View Set