-
-
-
-
Which of the following are true about the File class? (Select multiple)
A) File objects can be garbage collected.B) A File object can be used to access the files in the current directory.C) When a File object is created, a corresponding directory or file is created in the local file system.D) File objects are used to access files and directories on the local file system.
-
You do not need to follow any special indentation rules in Java
A) TrueB) FalseExplanation: Java is a free-form language
-
A constant value in Java is created by using a literal representation of it
A) TrueB) FalseExplanation: A constant value in Java is created by using a literal representation of it. For example, here are some literals:100 98.6 'X' "This is a test"Left to right, the first literal specifies an integer, the next is a floating-point value, the third is a character constant, and the last is a string. A literal can be used anywhere a value of its type is allowed
-
-
-
Swing's text components display text and optionally allow the user to edit the text
Skill/Topic: AWT & AppletsA) TrueB) False
-
Thread class is defined in the package ______
Skill/Topic: AWT & AppletsA) java.lang
-
AWT uses native ________ components
Skill/Topic: AWT & AppletsA) GUI
-
Each subclass ________ state (in the form of variable declarations) from the superclass
Skill/Topic: InheritanceA) Inherits
-
-
Open Excel sheet in Java
My java code needs to open an excel sheet and import data from the excel sheet. How can do that?
-
-
-
-
-
-
Java Interview Questions
Ans