symphony Company Programming Database


1)Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object?

2)Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized?

3)You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability?

4)Which interface does java.util.Hashtable implement?

5)Which interface provides the capability to store objects using a key-value pair?

6)/* Missing Statement ? */
public class foo
{
public static void main(String[]args)throws Exception
{
java.io.PrintWriter out = new java.io.PrintWriter();
new java.io.OutputStreamWriter(System.out,true);
out.println("Hello");
}
}

7)Which of the following are Java reserved words?

run
import
default
implement

8)What will be the output of the program?

public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) ? "assertion failed" : "assertion passed" ;
System.out.println("finished");
}
}

9)Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

A. Call by value
B. Call by reference
C. Default arguments
D. Call by pointer

10)Which of the following factors supports the statement that reusability is a desirable feature of a language?

A. It decreases the testing time.
B. It lowers the maintenance cost.
C. It reduces the compilation time.
D. Both A and B.

11)Which of the following access specifier is used as a default in a class definition?

12)what is while and do while?
a) loop statement
b) condition statement

13)i want to store value 1 to 100 which one is the best way to store ?

14)Which of the following statements is correct when a class is inherited privately?

a) Public members of the base class become protected members of derived class.
B. Public members of the base class become private members of derived class.
C. Private members of the base class become private members of derived class.
D. Public members of the base class become public members of derived class.

15)Which one is correct ?
a) Request and Analysis->Design->Coding->Testing->Release
b) Request and Analysis->Coding->Design->Testing->Release

16)what is Enumeration and iterator

Read Solution (Total 0)

symphony Other Question