|
No. |
Answer/Output |
|
51 |
A method is defined as native to get to access to hardware that Java does not know
about. |
|
52 |
Static methods cannot be overriden but they can be overloaded. |
|
53 |
Java Map is an interface that ensures that implementing classes cannot contain duplicacte
keys. |
|
54 |
Methods stop and suspend have been deprecated with Java2 release. |
|
55 |
A boolean value can either be true or false, null is not allowed. |
|
56 |
The wrapper classes cannot be used like primitives. |
|
57 |
If we implement Runnable interface, then we must create a method run() with void
return type. Otherwise Compile Time Error occurs |
|
58 |
The only operator overloading offered by Java is + sign for String class. A char
is a 16 bit integer and cannot be concatenated to a string with + operator. |
|
59 |
Constructors can only be invoked from with constructors. |
|
60 |
A collection for storing bits as on/off information is a bitset collection. Example
is a Vector of bits. |
|
61 |
Java does not use ASCII character set. Java characters are expressed as 16 bit unicode
characters. |
|
62 |
The order in which threads were started might differ from the order in which they
actually run because the order in which threads run is decided by the thread scheduler,
no matter which thread was started first. |
|
63 |
If run() method is directly invoked on a Thread object, no exception is thrown at
runtime. However, the code written in run() method would be executed, not by a new
thread. So, the correct way to start a thread is by invoking start() method, which
causes run() method to be executed by the new thread. |
|
64 |
Hashtabe class is inherently synchronized. |
|
65 |
If a source file includes a public class, the class name must match the unextended
filename. This is not actually a language requirement, but is an implementation
requirement of many compilers, including the reference compilers from Sun. |
|
66 |
Name given to the class file for anonymous inner class is created by the system. |
|
67 |
Different ways to express 28 in decimal, octal and hexadecimal are:
28, 034, 0x1c,0X1c,0x1C,0X1C |
|
68 |
We must include atleast one of . E e f F D or d to indicate a floating
point literal. |
|
69 |
The size of a Java array can be specified using a variable or a literal. |
|
70 |
Whle it is allowable to use a variable of type byte, short or int to specify the
size of an array, we cannot specify the size of an array using a variable of type
long, float, double. |
|
71 |
The default value of char is '\u0000' but not '0'. |
|
72 |
The local variable must be declared before it can be accessed. That is forward references
to undeclared local variables are not allowed. |
|
73 |
A legal identifier is a sequence of unicode letters and digits of unlimited length. |
|
74 |
? (non-printable character), ? is displayed when println() is unable to resolve
to a printable character for values above 127. |
|
75 |
Casting double to int truncated double value to next lower integer value. |