Java   View all facts   Glossary   Help
specification > class > FileInputStream
Next classfinal class    Upclass, stream    Previous classException class   

FileInputStream comparison table
Subject have syntax rule add is an instance of declare protect is a subtopic of name after access extend provide place in represent inherit contain have example instantiate you implement import from order is a kind of be a descendant of define specify by have access modifier permit have example of creation use override have syntax have benefit be a member of have have part has definition be is partitioned into
class
bold = mandatory
italic = non-terminal
normal font = optional
0 or more methods to the methods it inherits from its superclass a list of variables, called instance variables, corresponding to data that will be present in each instanceits members from access by other classes or objects using an access modifierClassesthe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'any public class in other packagesonly one superclassimplementation for all its instance methods unless the class is abstractits own source fileseveral similar objectsbehaviour from its superclassdata associated with each object
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
create an instance of itmore than one interfacea packageelements 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
specificationObject classa class type whose instances are the values of the class type1 class definition  an implements clause to declare that it contains methods for each of the operations specified by the interfacemethods that are inherited from the class's superclass
class classname
{ // declarations of variables
// declarations of constructors
// declarations of other methods with public ones first
}
1 named package rather than the default packagea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clashconstructorA template that describes the data and behaviour of its instances called objectsthe unit of data abstraction in an object-oriented programabstract class, concrete class
stream     Objects              kbTop             A sequence of objects  
FileInputStream
bold = mandatory
italic = non-terminal
normal font = optional
0 or more methods to the methods it inherits from its superclassstreama list of variables, called instance variables, corresponding to data that will be present in each instanceits members from access by other classes or objects using an access modifierInput and Outputthe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'any public class in other packagesonly one superclassimplementation for all its instance methods unless the class is abstractits own source fileseveral similar objectsbehaviour from its superclassdata associated with each object
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
create an instance of itmore than one interfacea packageelements 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
 Object classa class type whose instances are the values of the class type1 class definitionreading 1 byte at a time
FileInputStream stream = new FileInputStrem(inputFileNameOrPath);
to read bytes from a filemethods that are inherited from the class's superclass
class classname
{ // declarations of variables
// declarations of constructors
// declarations of other methods with public ones first
}
1 named package rather than the default packagespecificationconstructor the unit of data abstraction in an object-oriented program 

Next classfinal class    Upclass, stream    Previous classException class