Object Oriented Software Engineering   View all facts   Glossary   Help
subject > component > module > Java module > Java class
Next classrole^2    Upclass, Java module    Previous classheavyweight class   

Java class comparison table
Subject is an instance of is a subtopic of create by access from see also has part create using inherit contain have purpose correspond to deal with put into have example of accepting a connection throw if have access to is a kind of allow for relate to have example of listening use have has definition have example of connecting
Calendar classJava class7.5 - Usability Principles  class^2variables  data associated with each object        the use of calendars of specific cultures  an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Exception classJava classThe Basics of Java  exceptionvariables  data associated with each object           an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
IOExceptionJava class3.5 - Technology Needed to Build Client-Server Systems  class^2variables  data associated with each object     communication in a client server system fails     an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java abstract class The Basics of Javaspecifying the abstract keyword on the first line when you declare the class class^2abstract method  data associated with each objectto hold features that will be inherited by two or more subclasses      Java class   an implements clause to declare that it contains methods for each of the operations specified by the interfaceone or more abstract methods  
Java class in a package The Basics of Java  class^2variables  data associated with each object   a directory with the same name as the package   Java class   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java class that implements an interface The Basics of Java  class^2variables  data associated with each object       Java class other classes that implement the same interface in any other way an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java class that imports a package The Basics of Java  class^2variables  data associated with each object      methods and variables in the imported package that are not declared publicJava class   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java collection class The Basics of Java  class^2iterator method  data associated with each objectworking with collections of objects      Java class   iterator methods for doing something with every member of the collectiona unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java public class The Basics of Java outside its packageclass^2variables  data associated with each object       Java class   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java subclass The Basics of Java  class^2variablesthe extends keywordall instance variables and methods defined in its ancestor classesdata associated with each object       subclass   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Java wrapper class The Basics of Java  Java instance of wrapper classvariables  useful class methodsto allow you to do something with primitive values beyond what the basic operators can accomplishJava primitive data type     Java class   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Locale classJava class7.5 - Usability Principles  class^2variables  data associated with each object           to format numbersa unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
ServerSocket classJava class3.5 - Technology Needed to Build Client-Server Systems  server socketvariables  data associated with each objectto allow a server to listen to a port   the server must have a thread constantly listening for connections using a statement like the following, embedded in a loop:
Socket clientSocket = serverSocket.accept();
The above statement will wait indefinitely in the accept method until a client tries to connect, then it will try to create an instance of Socket class to handle the new connection. If this is successful both client and server now have instances of Socket class and can communicate freely with each other.
     ServerSocket serverSocket = new ServerSocket(port);
where port is the integer representing the port number on which the server should be listening
an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash Socket clientSocket= new Socket(host, port);
Socket classJava class3.5 - Technology Needed to Build Client-Server Systems  socketvariables  data associated with each objectto encapsulate information concerning TCP/IP connections between applications          an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
stream class 3.5 - Technology Needed to Build Client-Server Systems  class^2variables  data associated with each object       Java class   an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  
Thread classJava classThe Basics of Java  class^2variables  data associated with each object           an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clashA Java class that implements the general concept of a thread 
TimeZone classJava class7.5 - Usability Principles  time zonevariables  data associated with each object  the difference between Universal Time Coordinated (UTC or GMT) and local time        an implements clause to declare that it contains methods for each of the operations specified by the interfacea unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash  

Next classrole^2    Upclass, Java module    Previous classheavyweight class