![]() |
subject > component > module > Java module > Java 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 class | Java class | 7.5 - Usability Principles | class^2 | variables | 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 interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | ||||||||||||||||
Exception class | Java class | The Basics of Java | exception | variables | data associated with each object | an implements clause to declare that it contains methods for each of the operations specified by the interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | |||||||||||||||||
IOException | Java class | 3.5 - Technology Needed to Build Client-Server Systems | class^2 | variables | 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 interface | a 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 Java | specifying the abstract keyword on the first line when you declare the class | class^2 | abstract method | data associated with each object | to 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 interface | one or more abstract methods | |||||||||||||||
Java class in a package | The Basics of Java | class^2 | variables | 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 interface | a 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^2 | variables | 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 interface | a 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^2 | variables | data associated with each object | methods and variables in the imported package that are not declared public | Java class | an implements clause to declare that it contains methods for each of the operations specified by the interface | a 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^2 | iterator method | data associated with each object | working with collections of objects | Java class | iterator methods for doing something with every member of the collection | a 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 package | class^2 | variables | data associated with each object | Java class | an implements clause to declare that it contains methods for each of the operations specified by the interface | a 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^2 | variables | the extends keyword | all instance variables and methods defined in its ancestor classes | data associated with each object | subclass | an implements clause to declare that it contains methods for each of the operations specified by the interface | a 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 class | variables | useful class methods | to allow you to do something with primitive values beyond what the basic operators can accomplish | Java primitive data type | Java class | an implements clause to declare that it contains methods for each of the operations specified by the interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | |||||||||||||||
Locale class | Java class | 7.5 - Usability Principles | class^2 | variables | data associated with each object | to format numbers | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | |||||||||||||||||
ServerSocket class | Java class | 3.5 - Technology Needed to Build Client-Server Systems | server socket | variables | data associated with each object | to 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 interface | a 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 class | Java class | 3.5 - Technology Needed to Build Client-Server Systems | socket | variables | data associated with each object | to 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 interface | a 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^2 | variables | data associated with each object | Java class | an implements clause to declare that it contains methods for each of the operations specified by the interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | |||||||||||||||||
Thread class | Java class | The Basics of Java | class^2 | variables | data associated with each object | an implements clause to declare that it contains methods for each of the operations specified by the interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash | A Java class that implements the general concept of a thread | ||||||||||||||||
TimeZone class | Java class | 7.5 - Usability Principles | time zone | variables | 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 interface | a unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash |
Next class: role^2 Up: class, Java module Previous class: heavyweight class