Java Programming Flashcards
A Simple, object-oriented, network savvy, robust, secure, portable, multithreaded,, dynamic language.
Java
Who created the java programming language?
James Gosling- 1995
Simplifying the task of java programming
Simple
What are the 8 characteristics of java programming?
Simple, object oriented, network savvy, interpreted, robust, architecture neutral, multithreaded, dynamic language
Designed to support applications on network.
Architecture neutral
Early checking for possible problems, later dynamic checking, and eliminating situations that are error prone.
robust
Design to adapt to an evolving environment
dynamic language
Advantages of Java programming
faster development, increased quality, increased software reuse, easy maintenance
Class
blueprint, has new data types
What are the Java classes?
Data members, methods (instance), accessor
Technique that focus designs on the data and on the interfaces of it.
-facilitates the clean definition of interface.
object-oriented
Java compiler generates byte code instead of native machine code
interpreted
Necessary information that the JVM needs to run
Byte code class file
Eliminates the possibility of over writing memory and corrupting data.
pointing model
Way of building applications with multiple threads.
multithreading
Compiler vs. VM
compiler- source code-compiler-binary file
vm- source code-java compiler, byte code, JVM
4 features of Java programming
COMMENTS, IDENTIFIER, DATA TYPES, OPERATORS
3 types of comments
DOUBLE SLASHES, C-STYLE, DOC COMMENTS
What are the data types?
INTEGER, FLOATING POINT, BOOLEAN, CHARACTER, STRING , ARRAY
What are the operators?
BINARY, RELATIONAL, BITWISE, TERNARY, ASSIGNMENT, STRING CONCATENATION, INCREMENENT AND DECREMENT
Placed in source file to describe what is happening in the code to someone who might be reading the file.
COMMENTS
To enclose one or more lines to be treated as text.
C-STYLE COMMENTS
text strings that represents as variables, methods, classes or labels.
IDENTIFIER
to enclose lines of text for the javadoc to find
- to generate API documentation
DOC COMMENTS
identifiers can not be:
STARTING WITH A DIGIT AND SAME AS A RESERVE WORD
tell the compiler to treat everything from the slashes to the end of the line as text.
DOUBLE SLASHES
What are the relational operators?
<, >, =, !=
What are the bitwise or logical operators?
&&, ||, !
What are the binary operators?
+, -, /, *,%