-
Which Java operator is right associative
The = operator is right associative.
-
What is the Locale class
The Locale class is used to tailor program output to the conventions of a particulargeographic, political, or cultural region.
-
-
What is the Dictionary class
The Dictionary class provides the capability to store key-value pairs.
-
Which class should you use to obtain design information about an object
The Class class is used to obtain information about an object's design.
-
What is the difference between the paint() and repaint() methods
The paint() method supports painting via a Graphics object. The repaint() method is usedto cause paint() to be invoked by the AWT painting thread.
-
What is the difference between a field variable and a local variable
A field variable is a variable that is declared as a member of a class. A local variable is avariable that is declared local to a method.
-
Why are the methods of the Math class static
So they can be invoked as if they are a mathematical code library.
-
What is the difference between the File and RandomAccessFile classes
The File class encapsulates the files and directories of the local file system. TheRandomAccessFile class provides the methods needed to directly access data containedin any part of a file.
-
-
-
-
-
-
-
-
-
-
-
Java Interview Questions
Ans