100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
AP Computer Science Exam Review - Java Terms Exam Questions and Answers $10.99   Add to cart

Exam (elaborations)

AP Computer Science Exam Review - Java Terms Exam Questions and Answers

 6 views  0 purchase
  • Course
  • AP COMPUTER SCIENCE
  • Institution
  • AP COMPUTER SCIENCE

AP Computer Science Exam Review - Java Terms Exam

Preview 2 out of 6  pages

  • July 30, 2024
  • 6
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • AP COMPUTER SCIENCE
  • AP COMPUTER SCIENCE
avatar-seller
millyphilip
AP Computer Science Exam Review - Java Terms Exam Abstract class - Answer -A class that contains one or more abstract methods, and therefore can never be instantiated. Abstract classes are defined so that other classes can extend them and make them concrete by implementing the abstract methods.
Abstract method - Answer -A method that has no implementation.
Argument - Answer -A data item specified in a method call. An argument can be a literal
value or a variable. Example: .get(2); //2 is the argument
Array - Answer -A collection of data items, all of the same type, in which each item's position is uniquely designated by an integer.
Block - Answer -any code between matching squiggly brackets. Example: { x = 1; }
Boolean - Answer -Refers to an expression or variable that can have only a true or false
value.
Break - Answer -A keyword that exits you out of a loop or switch.
Casting (Type Casting) - Answer -Explicit conversion from one data type to another. Example: double var = 3; int ans = (int) var;
Char - Answer -a keyword used to declare a variable of type character
Class - Answer -defines the implementation of a particular kind of object. A class definition defines instance and class variables and methods, as well as specifying the interfaces the class implements and the immediate superclass of the class. Example: public class myClass(){
}
Class variable (static field) - Answer -A data item associated with a particular class as a whole--not with particular instances of the class. Class variables are defined in class definitions. Compiler - Answer -A program to translate source code into code to be executed by a computer. The Java compiler translates source code written in the Java programming language into bytecode for the Java virtual machine.
Continue - Answer -A keyword that forces the abrupt end of the current loop iteration and begins another iteration.
constructor - Answer -A pseudo-method that creates an object. Constructors are methods with the same name as their class. Constructors are invoked using the new keyword. Example:
public class myClass{
// a constructor that takes one parameter
public myClass(int var){ } }
Continue - Answer -a keyword used to resume program execution at the end of the current loop.
Declaration - Answer -A statement that creates a variable of a specific data type. Example: int v;
Default - Answer -A keyword optionally used after all "case" conditions in a "switch" statement. If all "case" conditions are not matched by the value of the "switch" variable, the "default" keyword will be executed.
Do - Answer -A keyword used to declare a loop that will iterate a block of statements. The loop`s exit condition can be specified with the "while" keyword. A do-while loop is guaranteed to run at least once.
double - Answer -A keyword used to define a variable of type double.
else - Answer -introduces statements that are executed when the condition in an if statement isn't true.
Exception - Answer -An event during program execution that prevents the program from
continuing normally; generally, an error.
Extends - Answer -Class X extends class Y to add functionality, either by adding fields or methods to class Y, or by overriding methods of class Y. An interface extends another interface by adding methods. Class X is said to be a subclass of class Y.
Field - Answer -A data member of a class. Unless specified otherwise, a field is not static.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller millyphilip. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73314 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart