G

g conversion character, Primitive and Numeric Conversions
G conversion character, Primitive and Numeric Conversions
Gamma, Objects in Java
garbage collection, Dynamic Memory ManagementDynamic Memory Management, Garbage CollectionGarbage Collection, Finalization, Glossary
defined, Glossary
and finalize() method, Finalization
in Java, Dynamic Memory ManagementDynamic Memory Management
gc() method method, Garbage Collection
generics, The Past: Java 1.0–Java 1.6, Reference Types, Containers: Building a Better MousetrapCan Containers Be Fixed?, Enter GenericsTalking About Types, Enter Generics, Talking About Types, ErasureErasure, Raw TypesRaw Types, Raw Types, Parameterized Type RelationshipsWhy Isn’t a List<Date> a List<Object>?, Parameterized Type Relationships, CastsCasts, The Type VariableThe Type Variable, Subclassing GenericsSubclassing Generics, Exceptions and GenericsNo generic throwables, Parameter Type LimitationsUsing Class<T>, BoundsErasure and Bounds (Working with Legacy Code), A Supertype of All Instantiations, Bounded WildcardsBounded Wildcards, Thinking Outside the ContainerThinking Outside the Container, Lower BoundsLower Bounds, Reading, Writing, and ArithmeticReading, Writing, and Arithmetic, <?>, <Object>, and the Raw Type, <?>, <Object>, and the Raw Type, <?>, <Object>, and the Raw Type, Wildcard Type RelationshipsWildcard Type Relationships, Generic Methods IntroducedGeneric Methods Introduced, Type Inference from ArgumentsType Inference from Arguments, Type Inference from Assignment ContextType Inference from Assignment Context, Explicit Type Invocation, Wildcard CaptureWildcard Capture, Wildcard Types Versus Generic Methods, Using Array TypesUsing Array Types, What Good Are Arrays of Generic Types?, Wildcards in Array TypesWildcards in Array Types, Case Study: The Enum ClassCase Study: The Enum Class, Case Study: The sort() MethodCase Study: The sort() Method, Generics and collections, Glossary, Glossary, Glossary
as added feature, The Past: Java 1.0–Java 1.6
and collections, Generics and collections
arrays of parameterized types, Using Array TypesUsing Array Types, What Good Are Arrays of Generic Types?, Wildcards in Array TypesWildcards in Array Types
purpose of, What Good Are Arrays of Generic Types?
using array types, Using Array TypesUsing Array Types
wildcards in array types, Wildcards in Array TypesWildcards in Array Types
bounds, BoundsErasure and Bounds (Working with Legacy Code)
casts, CastsCasts
containers, Containers: Building a Better MousetrapCan Containers Be Fixed?
defined, Glossary
Enum class, Case Study: The Enum ClassCase Study: The Enum Class
erasure, ErasureErasure
generic classes, Raw Types, Parameterized Type Relationships, Glossary
compatibility with raw types, Raw Types
defined, Glossary
one-dimensional inheritance, Parameterized Type Relationships
generic classes, writing, The Type VariableThe Type Variable, Subclassing GenericsSubclassing Generics, Exceptions and GenericsNo generic throwables, Parameter Type LimitationsUsing Class<T>
exceptions and generics, Exceptions and GenericsNo generic throwables
parameter type limitations, Parameter Type LimitationsUsing Class<T>
subclassing generics, Subclassing GenericsSubclassing Generics
type variable, The Type VariableThe Type Variable
generic methods, Generic Methods IntroducedGeneric Methods Introduced, Type Inference from ArgumentsType Inference from Arguments, Type Inference from Assignment ContextType Inference from Assignment Context, Explicit Type Invocation, Wildcard CaptureWildcard Capture, Wildcard Types Versus Generic Methods, Glossary
defined, Glossary
explicit type invocation, Explicit Type Invocation
overview, Generic Methods IntroducedGeneric Methods Introduced
type inference from arguments, Type Inference from ArgumentsType Inference from Arguments
type inference from assignment context, Type Inference from Assignment ContextType Inference from Assignment Context
vs. wildcard types, Wildcard Types Versus Generic Methods
wildcard capture, Wildcard CaptureWildcard Capture
overview, Enter GenericsTalking About Types
parameterized type relationships, Parameterized Type RelationshipsWhy Isn’t a List<Date> a List<Object>?
raw types, Raw TypesRaw Types
sort( ) method, Case Study: The sort() MethodCase Study: The sort() Method
type inference, Enter Generics
types, Reference Types, Talking About Types
wildcards, A Supertype of All Instantiations, Bounded WildcardsBounded Wildcards, Thinking Outside the ContainerThinking Outside the Container, Lower BoundsLower Bounds, Reading, Writing, and ArithmeticReading, Writing, and Arithmetic, <?>, <Object>, and the Raw Type, <?>, <Object>, and the Raw Type, <?>, <Object>, and the Raw Type, Wildcard Type RelationshipsWildcard Type Relationships
<?>, <?>, <Object>, and the Raw Type
<Object>, <?>, <Object>, and the Raw Type
bounded, Bounded WildcardsBounded Wildcards
lower bounds, Lower BoundsLower Bounds
raw type, <?>, <Object>, and the Raw Type
supertype of all instantiations, A Supertype of All Instantiations
thinking outside the container, Thinking Outside the ContainerThinking Outside the Container
using, Reading, Writing, and ArithmeticReading, Writing, and Arithmetic
wildcard type relationships, Wildcard Type RelationshipsWildcard Type Relationships
GET method, The TinyHttpd Server, Talking to Web Applications, Using the GET Method, Servlets
get() method, Accessing Fields, Working with Calendars, List, The Map Interface, Buffer operations
ByteBuffer class, Buffer operations
Calendar class, Working with Calendars
List interface, List
Map interface, The Map Interface
GET-style encoding, GET, POST, and “extra path”
getAbsolutePath() method, File operations, File operations
getActionCommand() method, Buttons and Labels
getAffectedArea() method, Limiting Drawing with Clipping
getAndIncrement() method, Atomic Operations
getAndSet() method, Atomic Operations
getApplet() method, Inter-applet communication
getAppletContext() method, Driving the browser
getApplets() method, Inter-applet communication
getAscent() method, Font Metrics
getAttribute() method, NIO File Operations, The ServletContext API, The DOM API, Test-Driving DOM
getAudioClip() method, Applet resources
getAuthType() method, Procedural Authorization
getAvailableIDs() method, Time Zones
getAvailableLocales() method, The java.util.Locale Class
getBackground() method, Other Component Methods
getBoolean() method, Accessing Fields
getBuffer() method, Streams from Strings and Back
getBundle() method, Resource Bundles
getByName() method, The HeartBeat applet code, InetAddress
getBytes() method, String Method Summary
getCanonicalPath() method, File operations, File operations
getCause() method, Chaining and rethrowing exceptions
getChars() method, String Method Summary
getChild() method, JDOM
getChildNodes() method, The DOM API
getChildren() method, JDOM
getChildText() method, JDOM
getClass() method, The Class Class, Reflection, Resource Paths
getClip() method, Transformations and rendering
getColor() method, Solid Colors, Using Fonts
getColumnClass() method, Round Two: Creating a Table Model
getColumnCount() method, Round Two: Creating a Table Model, Round Three: A Simple Spreadsheet
getColumnName() method, Round Two: Creating a Table Model
getComponentAt() method, Managing Components
getComponents() method, Managing Components
getConstructor() method, Reflection
getConstructors() method, Reflection, Reflection
getContent() method, Getting the Content as an Object, Getting the Content as an Object
getContentEncoding() method, The HttpURLConnection
getContentLength() method, The HttpURLConnection
getContents() method, Resource Bundles
getContentType() method, Managing Connections, The HttpURLConnection
getCookies() method, Cookies
getCurrencyInstance() method, Formatting with the java.text Package
getCursor() method, Other Component Methods
getDateInstance() method, Parsing and Formatting with DateFormat
getDateTimeInstance() method, Parsing and Formatting with DateFormat, Parsing and Formatting with DateFormat
getDeclaredClasses() method, Reflection
getDeclaredConstructor() method, Reflection
getDeclaredConstructors() method, Reflection, Reflection
getDeclaredField() method, Reflection
getDeclaredFields() method, Reflection, Reflection
getDeclaredMethod() method, Reflection
getDeclaredMethods() method, Reflection
getDefault() method, The java.util.Locale Class, ProxySelector
getDescent() method, Font Metrics
getDocumentBase() method, Applet resources
getDocumentElement() method, Test-Driving DOM
getElementbyTagName() method, Test-Driving DOM
getElementsByTagName() method method, The DOM API
getEventSetDescriptors() method, Getting events information
getExponent() method, Floating-Point Components
getExtraPath() method, GET, POST, and “extra path”
getFamily() method, Using Fonts
getField() method, Reflection
getFields() method, Reflection, Reflection
getFile() methods, The URL Class
getFileAttributeView() method, NIO File Operations
getFilePointer() method, RandomAccessFile
getFileStore() method, NIO File Operations
getFirstChild() method, The DOM API
getFont() method, Using Fonts
getFontName() method, Using Fonts
getForeground() method, Other Component Methods
getFreeSpace() method, File operations
getHeaderField() method, The HttpURLConnection
getHeaderFieldDate() method, The HttpURLConnection
getHeaderFieldInt() method, The HttpURLConnection
getHeight() method, Font Metrics, ImageObserver
getHost() method, The HeartBeat applet code, The URL Class
getHours() method, Object creation
getIcon() method, Supplying icons
getIconImage() method, Other Methods for Controlling Frames
getImage() method, The Image Class, Image Observers, ImageObserver, Applet resources
getImageLoadStatus() method, ImageIcon
getInsets() method, Insets
getInstanceOf() method, Bean Instantiation and Type Management
getInt() method, Accessing Fields
getInterfaces() method, Reflection
getLastChild() method, The DOM API
getLastModified() method, The HttpURLConnection
getLastModifiedTime() method, NIO File Operations
getLeading() method, Font Metrics
getLineMetrics() method, Font Metrics
getLogger() method, Loggers
getMaximumSize() method, Layout Managers, Layout Managers
getMediaTracker() method, ImageIcon
getMessage() method, Throwing Exceptions
getMethod() method, Reflection
getMethods() method, Reflection
getMinimumSize() method, Layout Managers, Layout Managers
getModifiers() method, Modifiers and Security, Mouse and Key Modifiers on InputEvents
getName() method, File operations, File operations, Other Component Methods, Using Fonts
getNextEntry() method, Decompressing Data
getNodeValue() method, The DOM API
getNumberInstance() method, Formatting with the java.text Package
getOppositeComponent() method, Focus Events
getOutputStream() method, Clients, Content type
getOwner() method, Conditions, NIO File Operations
getParameter() method, GET, POST, and “extra path”, Applet parameters
getParameterMap() method, The ShowParameters Servlet
getParent() method, File operations, File operations
getPassword() method, Say the Magic Word
getPath() method, File operations, File operations
getPercentInstance() method, Formatting with the java.text Package
getPosixFilePermissions() method, NIO File Operations
getPreferredSize() method, Other Component Methods, Layout Managers, Layout Managers
getProperties() method, System Properties
getProperty() method, System Properties, Properties
getPropertyDescriptors() method, Getting Properties Information
getProtocol() method, The URL Class
getReadLockCount() method, Conditions
getRequestURI() method, The ShowParameters Servlet
getResource() method, JAR Files, Resource Paths, Applet resources
getResourceAsStream() method, Resource Paths, Applet resources
getResourcePaths() method, The ServletContext API
getResponseCode() method, Using the POST Method
getRowCount() method, Round Two: Creating a Table Model, Round Three: A Simple Spreadsheet
getScaledInstance() method, Scaling and Size
getSelectedText() method, The TextEntryBox Application
getSelectedValues() method, Lists and Combo Boxes
getSelection() method, Checkboxes and Radio Buttons
getSession() method, The ShowSession Servlet
getSize() method, Other Component Methods, Using Fonts
getSource() method, More Events and Interfaces, Enabling and Disabling Components
getStackTrace() method, Stack Traces
getState() method, Thread State
getStream() method, Applet persistence and navigation
getStringBounds() method, Font Metrics, Font Metrics
getStyle() method, Using Fonts
getTcpNoDelay() method, TCP_NODELAY
getText() method, The TextEntryBox Application
getTextContent() method, The DOM API
getTime() method, Working with Calendars
getTimeInstance() method, Parsing and Formatting with DateFormat
getTotalSpace() method, File operations
getUseableSpace() method, File operations
getUserPrincipal() method, Procedural Authorization
getValue() method, Formatted Text
getValueAt() method, Round Two: Creating a Table Model, Round Three: A Simple Spreadsheet
getWheelRotation() method, Mouse-wheel events
getWidth() method, ImageObserver
getWriter() method, Pipes
getWriterFormatNames() method, Saving Image Data
global field, Loggers
glyphs, Drawing Text
Google Web Toolkit, Google Web ToolkitGoogle Web Toolkit
Gosling Emacs, Java’s Origins
Gosling, James, Enter Java
GradientPaint class, Color Gradients
graphical user interface (GUI), Glossary
Graphics class, HelloComponent
graphics context, Glossary
greediness, GreedinessGreediness
GREEN value, Static Members
GregorianCalendar class, Dates and Times
grep command line utility, XMLGrep
grid coordinates, Grid CoordinatesGrid Coordinates
GridBagConstraints class, The GridBagConstraints ClassThe GridBagConstraints Class
GridBagLayout class, Layout Managers, The GridBagConstraints ClassThe GridBagConstraints Class, Grid CoordinatesGrid Coordinates, The fill ConstraintThe fill Constraint, Spanning Rows and ColumnsSpanning Rows and Columns, WeightingCalculating the weights of rows and columns, AnchoringAnchoring, Padding and InsetsPadding and Insets, Relative PositioningRelative Positioning, Composite LayoutsComposite Layouts
anchoring, AnchoringAnchoring
composite layouts, Composite LayoutsComposite Layouts
fill constraint, The fill ConstraintThe fill Constraint
grid coordinates, Grid CoordinatesGrid Coordinates
GridBagConstraints class, The GridBagConstraints ClassThe GridBagConstraints Class
padding and insets, Padding and InsetsPadding and Insets
relative positioning, Relative PositioningRelative Positioning
spanning rows and columns, Spanning Rows and ColumnsSpanning Rows and Columns
weighting, WeightingCalculating the weights of rows and columns
gridheight variable, The GridBagConstraints Class, Spanning Rows and Columns
GridLayout class, Layout Managers, GridLayoutGridLayout
gridwidth variable, The GridBagConstraints Class, Spanning Rows and Columns
gridx variable, The GridBagConstraints Class, Grid Coordinates, Relative Positioning
gridy variable, The GridBagConstraints Class, Grid Coordinates, Relative Positioning
group() method, The Matcher
groupCount() method, The Matcher
grouping, GroupingGrouping
GUI (graphical user interface), Glossary
.gz files, Decompressing Data
GZIPInputStream, Decompressing Data
GZIPOutputStream, Archives and Compressed Data