Search your topic in Java2share
Home > FAQs
eXTReMe Tracker


CoreJava FAQs


Untitled Document

Q109. Can an object be garbage collected while it is still reachable?
A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected..

Q110. Is the ternary operator written x : y ? z or x ? y : z ?
It is written x ? y : z.

Q111. What is the difference between the Font and FontMetrics classes?
The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object.

Q112. How is rounding performed under integer division?
The fractional part of the result is truncated. This is known as rounding toward zero.