What are Font and FontMetrics classes?
Answer / ranganathkini
The Font class provides mappings to fonts that are used to
render text data onto the screen. The Font class maps the
characters of the language to their respecitve glyphs.
The FontMetrics provides access to attributes of Font
objects, things such as char width, char height, ascents,
line spacing, etc, all of which help in drawing the fonts on
the screen.
| Is This Answer Correct ? | 14 Yes | 1 No |
What is the difference between the file and randomaccessfile classes?
How big is a pointer?
Explain importance of finally block in java?
What is an Exception ?
How many types of string data types are there?
Is string an object?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
What is hotjava?
Why are arrays useful in java?
Explain Big-O notation with an example
Name the package that always imported by default?
Is array primitive data type in java?