Level 33 Level 35
Level 34

[Quiz] Basic Syntax II


96 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
JAR file
Java classes inside a package that have already been compiled into byte code.
javadoc
A tool which will create an API for a class or package.
Comparator
an instrument that compares the actual output with the desired output or result
J2SE
Java 2 Standard Edition Platform, the "2" was intended to differentiate the significant changes introduced in 1.2 onwards. The term is somewhat deprecated.
Java SE 6 (Mustang)
Last release of Java SE (1.6), 1.7 is in beta.
Java Applet
Application can be downloaded via a network and run in a guarded sandbox. Using digital signatures, users can allow applets more or even complete access rights to the host machine/environment.
JSR, JCP
Java Specification Requests. Interested parties can make spec requests for future versions of Java. These are reviewed and agreed by the Java Community Process and a formal, versioned document is published describing requirements t…
Java Editions
A bundle of the java platform that includes related packages and programs for more specific purpose. E.g. JavaEE (Enterprise Edition), JavaME (Micro Edition).
JavaME
Micro Edition, supplies a different core library package (a different "profile") designed for devices with limited resources (e.g. memory footprint, CPU an bandwidth useage).
JavaEE
Enterprise Edition (organisations rather than personal use), includes both the SE (Standard Edition) along with extra packages including APIs for multi-tier server-client development.
Java Card
Java Edition targeted at smart cards (e.g. on credit cards, a small integrated circuit, microprocessor and volatile memory).
MIDlet
Java ME app that uses the Mobile Information Device Profile (MIDP) of the Connected Limited Device Configuration (CLDC). Uses a reduced UI (no Swing or AWT) and has restrictions on resources such as the …
Manifest
.jar files can contain a manifest file : META…
Digital Signature
A way of signing a Java application so that users can verify its origin. For security reasons, a system may be set only to run applications that have been digitally signed to verify that …
.jar Obfuscation
The contents of a .jar are compressed and sometimes deliberately obfuscated (by software) so that they can't be read or reverse engineered by users / competitors when distributed.
Aglet
Aglets is a Java based mobile agent platform and library for building mobile agents based applications. An aglet is a Java agent which can autonomously and spontaneously move from one host to another carryi…
Eclipse
Software development environment including and IDE and extensible plug-in system for extensible functionality. Written in Java and often used for Java development. Includes plug-ins for developing with he Android application framework (mobiles / tablets).
Servlet
A Java class in the JavaEE that conforms to the Java Servlet API, a protocol by which the class may respond to requests (e.g. http requests). Commonly used to extend the capabilities of servers, …
JIT Compiler
Although Java source-code is compiled into bytecode that can be run on any platform running the VM, the code would run faster if it were compiled again into machine-code specific to that platform. A…
Package Naming Convention
To avoid collisions between package names when a package is published, naming conventions are proposed. The standard is roughly [location].[organisation].[department].[class group]. E.g. uk.frontier.rendering.texture might be used in a texture library package.
Compiler/Interpreter
Translates language statements into machine code
Logic errors
also called semantic errors
object creation
Some objects cannot be constructed unless extra information is provided.
field
A software object's state is stored in a
constructor
Used to instantiate (create) an object of that class
scope
The part of a program where a variable exists.
lifetime
The lifetime of a variable describes how long the variable continues to exist before it is destroyed.
assignment
A statement that assigns a value to a variable.
println
The method "System.out.println" prints its parameter to the text terminal.
conditional
A statement that takes one of two possible actions based upon the result of a test.
local variable
A variable known only within a method or a small program structure, such as loop structure or conditional structure
method
A software object's behavior is exposed through a
parameter
Methods can have parameters to provide additional information for a task.
signature
The header of a method is called its signature. It provides information needed to invoke that method.
type
public Polygon polygonFrom(Point... corners) {}
multiple instances
Many similar objects can be created from a single class.
method calling
Objects can communicate by calling each other's methods.
Source Code
The source code of a class determines the structure and behavior (the fields and methods) of each of the objects of that class.
result
Methods may return information about an object via a return value.
statements
a syntactical unit in a program
String
The String class represents an immutable, e.g. cannot be changed, string of characters with its own methods.
case sensitive
An uppercase letter is different from the same letter in lowercase.
compile-time error
an error that is detected when a program is compiled
pseudocode
more precise algorithm notation ; series of statements; NOT a programming language; no formal syntax
algorithm
compact, general, abstract step-by-step recipe describing how to perform certain task/ solve a problem
Variable
'Container' for a piece of information
reserved words
words that can have special meanings in a programming language and therefore cannot be used as a name by a programmer
primitive types
in java - a number type or boolean
concatenation
Use a + to join (concatenate) two strings. When you concatenate a string with a value that is not a string, the latter is converted to a string. Every Java object can be converted to a string.
prompt
A string that informs the user of the kind of data expected to be typed.
white space
are characters with spaces that doesn't do anything but for readability purposes. It doesn't affect results at all and are ignored.
What is "bytecode"?
Sometimes called p-code (portable-code). It is a highly optimized set of low-level virtual
What is "encapsulation"?
A form of abstraction that offers a mechanism for bringing together data, and code that
What is "inheritance"?
A class gains characteristics (code and data) from another class -in a parent/child relationship
The general form is:
What are the valid ways to define a new variable in Java?
*
multiplication
/
division
%
modulus (remainder after division)
==
Equal to (Relational Operators)
!=
Not Equal (Relational Operators)
>
Greater than (Relational Operators)
<
Less than (Relational Operators)
>=
Great than or equal to (Relational Operators)
<=
Relational operator for 'less than or equal to'
var++
Postincrement -Increases the value of operand by 1
-var
Predecrement -Decreases the value of operand by 1
var--
Postdecrement -Decreases the value of operand by 1
=
Assignment -stores the right hand value in
+=
Additional Assignment (Assignment Operator), Add AND assignment operator, It adds right operand to the left operand and assign the result to left operand, Example: C += A is equivalent to C = C + A
-=
Subtraction Assignment - it subtracts right operand from the left operand and assign the result to left operand
*=
Multiplication Assignment -Multiply AND assignment operator, It multiplies right operand with the left operand and assign the result to left operand
/=
Division Assignment -Divide AND assignment operator, It divides left operand with the right operand and assign the result to left operand
%=
Remainder Assignment -Modulus AND assignment operator, It takes modulus using two operands and assign the result to left operand
&&
Short Circuit AND (Logical Operators)
||
Logical operator for 'OR'
!
NOT (Logical Operators)
public
Accessible by any class in the program.
main
The first method that is run.
Int
If there is a method "sum(int x, int y)", what is the return type?
abstract
Indicates that the details of a class, a method, or an interface are given elsewhere in the code.
assert
Tests the truth of a condition that the programmer believes is true.
Boolean
Binary data type
break
this causes immediate exit from any loop
byte
eight bits
catch
Introduces statements that are executed when something interrupts the flow of execution in a try clause.
Char
Data type indicative of a single symbol
continue
when used in a loop, this statement causes the current loop iteration to end, but the loop then moves on to the next step
default
Introduces a path of execution to take when no case is a match in a switch statement.
Double
64 bits long. 64bit FLOATING POINT
else
Introduces statements that are executed when the condition in an if statement isn't true.
extends
What keyword at the beginning of a class creates a subclass?
final
constant variables are defined with the word:
finally
Introduces the last will and testament of the statements in a try clause.
float
32 bits long. 32bit FLOATING POINT
for
Gets the computer to repeat some statements over and over again (for instance, a certain number of times).
goto
You can't use this word in a Java program. The word has no meaning. Because it's a keyword, you can't create a goto variable.