Java   View all facts   Glossary   Help
stream
Next kbTopsynonym    UpkbTop    Previous kbTopstate   

stream comparison table
Subject have part define have syntax be a member of be access have example implement have syntax rule override place in have benefit add permit have access modifier protect have access mode have example of creation use order specify by inherit provide be a descendant of name after represent extend instantiate you declare contain import from
FileInputStreamconstructora class type whose instances are the values of the class type
class classname
{ // declarations of variables
// declarations of constructors
// declarations of other methods with public ones first
}
1 named package rather than the default packagethe unit of data abstraction in an object-oriented programany public class in other packages
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
more than one interface
bold = mandatory
italic = non-terminal
normal font = optional
methods that are inherited from the class's superclassits own source file0 or more methods to the methods it inherits from its superclassreading 1 byte at a timeits members from access by other classes or objects using an access modifier 
FileInputStream stream = new FileInputStrem(inputFileNameOrPath);
to read bytes from a fileelements as follows:
  1. class variables
  2. instance variables
  3. constructors
  4. the most important public methods
  5. methods that are simply used to access variables
  6. private methods
1 class definitionbehaviour from its superclassimplementation for all its instance methods unless the class is abstractObject classthe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'several similar objectsonly one superclasscreate an instance of ita list of variables, called instance variables, corresponding to data that will be present in each instancedata associated with each objecta package
FileOutputStream              writing 1 byte at a time   
FileOutputStream stream = new FileOutputStrem(outputFileNameOrPath);
to write bytes to a file            

Next kbTopsynonym    UpkbTop    Previous kbTopstate