-
-
How to check the status of a caps lock key..?
You can do it without using key event, by creating an artificial key event using java.awt.Robot class to generate a "simple caracter" key press (for instance KeyEvent.VK_A). Sample Source Code -- May not be accurate but the concept is as follows. import java.awt.*;import java.awt.event.*;public class Test { public static void main(String[] args) throws AWTException...
-
-
-
-
-
-
-
-
-
-
Which of the following types of class members can be part of the internal part of a class? (Select multiple)
A) Public instance variablesB) Private instance variablesC) Public methodsD) Private methods
-
Which of the following classes is used to perform basic console I/O?
A) SystemB) SecurityManagerC) MathD) Runtime
-
How do you create a Reader object from an InputStream object?
A) Use the static createReader( ) method of InputStream class.B) Use the static createReader( ) method of Reader class.C) Create an InputStreamReader object, passing the InputStream object as an argument to the InputStreamReader constructor.D) Create an OutputStreamReader object, passing the InputStream object as an argument to the OutputStreamReader constructor.
-
Which of the following can you perform using the File class? (Select multiple)
A) Change the current directoryB) Return the name of the parent directoryC) Delete a fileD) Find if a file contains text or binary information
-
Java was conceived by __________
A) MicrosoftB) OracleC) Sun MicrosystemD) Intel
-
What does J2SE mean?
A) Java 2 Platform Standard EditionB) Java 2 Internet Standard EditionC) Java 2 Platform Independent Standard EditionD) Java 2 Systems Edition
-
Abstract class can be declared as final
Skill/Topic: InheritanceA) TrueB) FalseExplanation: An abstract class may not be declared as final.
-
_________ are light-weight components
Skill/Topic: AWT & AppletsA) Swings
-
Java Interview Questions
Ans