Java   View all facts   Glossary   Help
kbTop

kbTop comparison table
Subject run on restructure return choose is a synonym of have examples create you run you may adhere to use be usually communicate with check for have definition create include model see also contain inherit learn about comment limit ensure compile on is a kind of receive have part is partitioned into send import you has definition refer to by group have syntax rule consider have example wait on be execute by is a subtopic of have example of creation run you access refer to keep hide has default reject convert into take advantage of convert be set by represent avoid follow notify determine using have purpose store has part represent by write change using create by pay attention to specify remember apply share have
abbreviation                         kbTop                                              
abstraction                         kbTop               Object Oriented Programming Concepts                              
access mode                 access modifier       kbTop               Access Control                              
action                         kbTop                                              
association                         kbTop           class Person in a business application might have the following relationships:                 the relationship between instances of one class and instances of another                 
attribute             a simple piece of data used to represent the properties of an object           kbTop           each instance of class Person might have the following attributes:
  • name
  • dateOfBirth
  • socialSecurityNumber
  • telephoneNumber
  • address
                                  
behaviour                         kbTop     The set of all responses to all possible messages                                        
class path                         kbTop     An ordered list of directories or zip files to search for class files         How Java Works                             
CLASSPATH environment variable                         kbTop               How Java Works                         the class path    
code                         kbTop     Computer programming instructions                                        
coding scheme                         kbTop               How Java Works                              
collection                         kbTop     A group of things                                        
collection of software components                         kbTop                                              
company                         kbTop                                              
condition     
aNumber > 5
aNumber < 5
aNumber > 5 && anotherNumber < 7
aNumber == anotherNumber
                   kbTop     A condition in Java is a statement that evaluates to a boolean value (true or false)         Loops and Decision Making                              
environment                         kbTop     The hardware and software configuration of a computer         How Java Works                              
file                         kbTop     A block of information in the form of bytes, stored together on a computer or external digital storage medium, and given a name       the smallest unit of source code that can be compiled                                
hierarchy                         kbTop     An organized tree-like structure of subjects         Inheritance                              
HTML tag                         kbTop     A code in an HTML document that may serve various functions such as controlling the styling of text and placement of graphic elements and providing links to interactive programs and scripts.         Applets                              
identity                         kbTop     Unlike primitive values, objects possess a unique identity that makes them distinguishable from one another, even when they are in the same state ; e.g. Two strings, s1="x" and s2=new String(s1), are equal but have different identity, so s1.equals(s2) is true but s1==s2 is false.         Objects                              
Java programa Java platform   program  need platform-specific instructions  slower than native code             any platform that has a Java compilerkbTop  applet, application  A collection of 1 or more classes that work together and is started either by the operating system or a browser running it       readable by humansa Java Virtual MachineHow Java Works type java and the class file name on the command line            consistent guidelines that make the program easy to read              0 or 1 name
mechanism                         kbTop                                              
member                         kbTop  member variable, method, inner class  A field (instance variable) or method of a class         Members                              
member of a package                         kbTop    put an import statement for it at the beginning of your file before any class or interface definitions but after a package statementA class or interface belonging to a package         Packages                              
message                         kbTop the object to whom the message is addressed   A means of communication between objects         Methods                 to request that the receiving object perform a method            
name space               the names in the file's own package plus the names in all imported packages         kbTop               Packages                              
object  its class using the getClass method instance use the new operator    other objects by sending and receiving messages      instance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
     kbTopmessages from  messages to A piece of memory that holds data in instance variables and a pointer to its classseveral different variables at the same time   
  • when an object is not needed any longer
  • the object's space is garbage collected
 0 or more condition variablesdistinct from every other object even if they contain the same data ObjectsString name = new String(); all instance variables of all objects of its classwithout reference to the instance variables contained in it methods from other objects using the 'private' keyword  a string using the toString method itself to a string representation using the toString method any entity to which you can associate properties and behaviour  other objects that a condition variable has changed   public interface   
  • declaring and initializing it such that it is created whenever execution enters a particular block, or, in the case of an instance variable, when an instance is created, for example:
    String aString = "some text";
  • or by declaring it and initializing it later using the new operator, for example:
    String aString;
    aString = new String("some text");
    one copy of each class variable of its class with the other instances of its classstate that is maintained in its variables
object table                         kbTop     A table that maps object handles to actual addresses         How Java Works                              
operation                         kbTop     a higher-level procedural abstraction than a method: It is used to discuss and specify a type of behaviour, independently of any code which implements that behaviour                                        
paradigm                         kbTop                                              
practice                         kbTop                                              
principle                         kbTop                                              
process                         kbTop               Threads                              
programmer code to make it simpler if necessary alternative that makes code simpler over more complicated one    object oriented principlesconsistent code layout style  valid generalizations by checking that:
  • superclasses and subclasses have unambiguous names
  • each subclasses retains its distinctiveness throughout its life
  • all the inherited features must make sense in each subclass
 several small classes, rather than one big, complex class     about the different programming strategies that make a Java program run fasterwhatever is non-obvious but should not comment obvious things as this adds clutter that anything that is true in a superclass is also true in its subclasses kbTop       classes into logical sections with a clear comment separating each section if a class has many methods languages other than Java for number-crunching applications   responsible for anticipating things that can go wrong and writing exception handling code in preparation Programming    the number of instance variables small. If this number exceeds 10, then consider splitting the class into separate classes - e.g. a superclass and a subclass  'clever' or 'cool' coding techniques unless they make the code simpler to understand polymorphism, inheritance, abstract classes, and methods   over-use of class variables or class methodsthe specific conventions for commenting classes and methods that allow for documentation to be automatically generated using a program called 'javadoc'      comments at the same time as writing code , and perhaps even before writing the code  to the documentation describing which features of Java are deprecated that shorter code is not necessarily better code but unnecessarily long code is also badthe 'isa' rule religiously  
programming                         kbTop                                              
programming language                         kbTop               Java History and Related Languages                              
public interface                         kbTop     A class's public instance variables and public instance methods which are accessible to objects outside the class         Classes                              
publication                         kbTop                                              
relation                         kbTop                                              
scope                         kbTop     The region of a source text over which a declaration holds         Scope                              
specification                         kbTop     A detailed precise presentation of something or of a plan or proposal for something                                        
state                         kbTop     How something is; its configuration, attributes, condition, or information content         Object Oriented Programming Concepts                    1 or more member variable         
stream                         kbTop     A sequence of objects         Objects                              
synonym                         kbTop     One of two or more words or expressions that have the same meaning                                        
syntactic unit                         kbTop     A part of a program to which a syntax rule applies  
bold = mandatory
italic = non-terminal
normal font = optional
                                     
terminal input and output                         kbTop           
//Print
System.out.println("This line will be printed");
//Read from the keyboard
byte[] buffer = new byte[1024];
System.in.read(buffer);
String theInput = new String(buffer).trim();
   Input and Output                              
thread group                  threads and/or other thread groups   its members so they cannot modify threads outside their own thread group  kbTop               Threads                              
thread priority                         kbTop     The importance of a thread, which determines which thread in a system will be run first       a value between the constants: MIN_PRIORITY and MAX_PRIORITY Threads      NORM_PRIORITY         the getPriority method     the setPriority method       
tool                         kbTop                                              
type    data type                 the possible values that a variable can hold or that an expression can produce at run time  kbTop  primitive type, reference type  A class, interface, or primitive type         Variables and Data Types                         a set of value    
unparented                                                                        
user interface                         kbTop               Graphical User Interfaces                              
user interface component    widget                    kbTop     A component used to create the user interface such as a menu, list, input field etc.         Graphical User Interfaces                              
value    datum                    kbTop  primitive value, object                                         a size in bytes
vector  the number of elements it contains using the size() method as in:
vectorName.size()
      to implement a queue or push-down stack       Vector class       kbTop             an instance of Vector class Collections                  reference types, not primitive types          
//Declare a vector and create an instance
Vector v = new Vector();
Web browser    browser                    kbTop     A software application that enables you to access the World Wide Web         Applets