Core Java

Collections Objective Questions And Answers


Totel:19 Click: 1 2 3 4
Collections Interview Questions And Answers

Page 1

Questions Show Answers Total Posts Post Your Answers Last Post
Consider the following program:
import myLibrary.*;
public class ShowSomeClass
{
// code for the class...
} 
What is the name of the java file containing this program?
A. myLibrary.java
B. ShowSomeClass.java
C. ShowSomeClass
D. ShowSomeClass.class
E. Any file name with the java suffix will do
Show Answers 1 Post Your Answers 21.10.11
harsh singh
Which of the following is TRUE?
A. In java, an instance field declared public generates a compilation error.
B. int is the name of a class available in the package java.lang
C. Instance variable names may only contain letters and digits.
D. A class has always a constructor (possibly automatically supplied by the java 
compiler).
Show Answers 1 Post Your Answers 21.10.11
harsh singh
Consider the following code snippet
String river = new String(“Columbia”);
System.out.println(river.length());
What is printed?
A. 6
B. 7
C. 8
D. Columbia
Show Answers 1 Post Your Answers 21.10.11
harsh singh
A constructor
A. must have the same name as the class it is declared within.
B. is used to create objects.
C. may be declared private
D. A and B
E. A, B and C

Show Answers 1 Post Your Answers 21.10.11
harsh singh
Which of the following may be part of a class definition?
A. instance variables
B. instance methods
C. constructors
D. all of the above

Show Answers 1 Post Your Answers 21.10.11
harsh singh

Goto Page:

Collections Interview Questions And Answers

Collections Interview Questions And Answers


Collections Interview Questions And Answers

Collections Subjective Questions And Answers


R4R,Collections Objective fresher and experienced, Collections Subjective fresher and experienced ,Collections Interview Questions And Answers,Collections fresher and experienced,Collections Interview fresher and experienced ,Collections Questions fresher and experienced,Collections Answers fresher and experienced