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

JAR file
Java classes inside a package that have already been compiled into byte code.
A tool which will create an API for a class or package.
an instrument that compares the actual output with the desired output or result
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.
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).
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).
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).
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 …
.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.
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…
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).
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.
Translates language statements into machine code
Logic errors
also called semantic errors
object creation
Some objects cannot be constructed unless extra information is provided.
A software object's state is stored in a
Used to instantiate (create) an object of that class
The part of a program where a variable exists.
The lifetime of a variable describes how long the variable continues to exist before it is destroyed.
A statement that assigns a value to a variable.
The method "System.out.println" prints its parameter to the text terminal.
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
A software object's behavior is exposed through a
Methods can have parameters to provide additional information for a task.
The header of a method is called its signature. It provides information needed to invoke that method.
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.
Methods may return information about an object via a return value.
a syntactical unit in a program
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
more precise algorithm notation ; series of statements; NOT a programming language; no formal syntax
compact, general, abstract step-by-step recipe describing how to perform certain task/ solve a problem
'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
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.
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?
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'
Postincrement -Increases the value of operand by 1
Predecrement -Decreases the value of operand by 1
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)
Accessible by any class in the program.
The first method that is run.
If there is a method "sum(int x, int y)", what is the return type?
Indicates that the details of a class, a method, or an interface are given elsewhere in the code.
Tests the truth of a condition that the programmer believes is true.
Binary data type
this causes immediate exit from any loop
eight bits
Introduces statements that are executed when something interrupts the flow of execution in a try clause.
Data type indicative of a single symbol
when used in a loop, this statement causes the current loop iteration to end, but the loop then moves on to the next step
Introduces a path of execution to take when no case is a match in a switch statement.
64 bits long. 64bit FLOATING POINT
Introduces statements that are executed when the condition in an if statement isn't true.
What keyword at the beginning of a class creates a subclass?
constant variables are defined with the word:
Introduces the last will and testament of the statements in a try clause.
32 bits long. 32bit FLOATING POINT
Gets the computer to repeat some statements over and over again (for instance, a certain number of times).
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.