MCQs
None.
Output:
$ javac LOCALE_CLASS.java
$ java LOCALE_CLASS
HINDI
None.
Output:
$ javac LOCALE_CLASS.java
$ java LOCALE_CLASS
HINDI
UNIT_INCREMENT VALUE will change when the button at the end of scroll bar
ContainerEvent is superclass of ContainerEvent, FocusEvent, KeyEvent,
MouseEvent and WindowEvent.
equals() is method of class String, it is used to check equality of two String objects, if they
are equal, true is retuned else false.
output:
$ javac string_class.java
$ java string_class
false true
ContainerEvent is superclass of ContainerEvent, FocusEvent, KeyEvent, MouseEvent
and WindowEvent.
None.
Output:
$ javac multithreaded_programing.java
$ java multithreaded_programing
Thread[My Thread,5,main]
toString() is method of class Object, since it is superclass of every class, every object has this
method. toString() returns the string associated with the calling object.
output:
$ javac Output.java
$ java Output
A@1cd2e5f
None.
There is no relation between random numbers generated previously in Java.