Shared Flashcard Set

Details

First Term: Java Programming
N/A
52
Computer Science
11th Grade
09/11/2014

Additional Computer Science Flashcards

 


 

Cards

Term
What is Java?
Definition
object-oriented programming language
Term
Java was invented when and by who?
Definition
1991 by Sun Microsystems
Term
What was Java originally made for?
Definition
for consumer electronics
Term
What are the 7 characteristics of Java?
Definition
simple
reliable
dynamic
networking
secure
free
portable
Term
What are Java servlets?
Definition
Web pages with additional functionality
Term
What is a Java bytecode verifier?
Definition
it prevents loaded classes from accessing the system
(public-key encryption)
Term
What is the Java extension BEFORE the class is compiled?
Definition
.java
Term
What is the Java extension AFTER the class is compiled?
Definition
.class
Term
What are the 3 types of Java applications?
Definition
Console
Graphical User Interface (GUI)
Applets
Term
What are Console Applications?
Definition
- text-based
- support only via command prompt
Term
What are GUI Applications?
Definition
depend on computer mouse for input
Term
What are Applets [Applications]?
Definition
- small GUI Applications
- can be run within Web pages
Term
What is BlueJ?
Definition
- Integrated Development Environment (IDE)
- used to compile and run Javascripts
Term
What is 'New'?
Definition
tells computer to create object from class
Term
What is 'Public'?
Definition
indicates class/method/variable can be accessed by any object/method directly
Term
How do you identify a single line comment?
Definition
when it is following //
Term
How do you identify the start of the method?
Definition
when it says printWelcome() [Welcome being class name]
Term
How do you identify how to print text?
Definition
when it says println()
Term
How do you identify a multi line comment?
Definition
when it is between /* and */
Term
What are Java keywords?
Definition
- reserved for specific uses
- recognized by the Java compiler
- lowercase
Term
What 3 characters can identifiers only start with?
Definition
letters, underscores (_), or dollar signs ($)
Term
What are the rules for identifiers?
Definition
1. can start with letter/underscore/dollar sign
2. can be alphanumeric
3. no maximum length
4. descriptive of purpose
5. no embedded spaces
6. no special characters
Term
What are the 2 Data Types?
Definition
primitive and reference
Term
What are variables?
Definition
- identifiers
- changeable values
Term
How can you declare several values?
Definition
by separating identifiers with commas
Term
What is casting?
Definition
assigning a value/variable
Term
What is concatenation?
Definition
joining values together
Term
What are Operators?
Definition
symbols that perform logical/mathematical functions on operands
Term
What are the 3 types of Operators?
Definition
Unary
Arithmetic
Comparison/Relational
Term
What are Unary Operators?
Definition
require one operand (don't need assignment operators)
Term
What are Comparison/Relational Operators?
Definition
binary (indicate relationship between two operands)
Term
What are Truth Tables?
Definition
demonstrates result of a logical operation
Term
What are Decisions?
Definition
allows program to choose what code to run
Term
What are the 4 types of Decisions?
Definition
IF
IF ELSE
SWITCH
NESTED IF
Term
When do you use an IF ELSE statement?
Definition
it is used instead of 2 IF statements
Term
What is a SWICTH statement?
Definition
it is a type of decision that can have many execution paths
Term
What is a NESTED IF statement?
Definition
is is a type of decision that has an IF statement within an IF statement (nested)
Term
What is a Loop?
Definition
it permits a set of instructions to be repeated
Term
What are the 3 types of Loops?
Definition
FOR
WHILE
DO WHILE
Term
What is an IF statement?
Definition
it evaluates a condition (if true, it runs the code)
Term
What is a FOR Loop?
Definition
a repetition control structure that repeats a specific amount of times
Term
What is a WHILE Loop?
Definition
a repetition control structure that checks if a condition is true, then repeats a certain amount of times
Term
What is a DO WHILE Loop?
Definition
a repetition control structure that checks if a condition is true, then executes only once
Term
What is 'Block'?
Definition
group of codes within same scope ({})
Term
What is the 'Wrapper Class'?
Definition
it converts primitive data types into an object, allowing further manipulation on data stored
Term
What are Exceptions?
Definition
unexpected error/events within Java program
Term
What is a 'Try Statement'?
Definition
it tells the computer that an error might happen within its scope
Term
What is a 'Catch Statement'?
Definition
it tells the computer that an error might happen within the scope of Try Statement
Term
What is a 'Constructor'?
Definition
it is a method when you create a new object
Term
What is Inheritance?
Definition
- it is when a subclass (child) acquires characteristics from the superclass (parent)
- it is used code reusability
Term
What is an Interface?
Definition
it is a class without interpretation
Term
What is Method Overloading?
Definition
it is when methods have the same name but have different argument lists/parameters
Supporting users have an ad free experience!