-
Class Instance
How many ways one can create an instance of a class?
-
Explain the mechanism to create an object.
In Java, a class is a type, similar to the built-in types int and boolean. Declaring a variable does not create an object. Explain the mechanism to create an object.
-
Java Methods
What are the different types of methods and their use in Java?
-
In Java, if main method call any other method then that method must be_________
1) Private
2) Recursive
3) Static
4) void -
What is the purpose of the finally clause of a try-catch-finally statement
The finally clause is used to provide the capability to execute code no matter whether ornot an exception is thrown or caught.
-
-
In Java, Package does not contain__________
1) Class
2) Package
3) Interfaces
4) Objects -
-
Write a program that prompts the user to input three numbers.
The program should then output numbers in ascending order.
-
-
What is the range of the char type?">
What is the range of the char type?
A) 0 to 215-1 B) 0 to 216-1 C) 0 to 215 D) 0 to 216
-
-
__________ code segments must be implemented for an event handler.
Skill/Topic: AWT & AppletsA) OneB) TwoC) ThreeD) Four
-
-
-
All of Swing's text components inherit from the same superclass
Skill/Topic: AWT & AppletsA) TrueB) False
-
How SCJP exams are Helpful???
I am new to java...if I passed out the SCJP exams then how it would be beneficial at time of job..interviews???
-
-
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
-
Explain Object Construction in simple terms
In Java, object types (i.e., classes) must be explicitly constructed for initialization. Explain object construction. Then, state the name of the mechanism for object destruction, and explain in simple terms how it works.
Java Interview Questions
Ans