-
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
-
-
Imagine there is a class Employee. We create an object of EmployeeEmployee a= New Employee();If we are givingSystem.out.println(a);What gets printed?
It gives the memory location of Employee object.
-
-
-
-
-
-
-
-
-
Difference between Throw & Throws
1)What is the difference between Throw & Throws?2)Explain the use of transient variable with example?
-
-
-
-
Java Interview Questions
Ans