You are on page 1of 3

1> uniqueEnpId

[111, 112, 113]

2> public class Emp, public class TestEmp


5 false false 5
4> public static void before()
it has runtime error answer would be runtime error.
5> Array list add("20")
compilation error
6>which collection class allows you to grow or shrink its size and provides inde
xed access to its elements but whose methods are not synchronised.
java.util.arrayList;
7> list1= new Oject[5];
8> Primes2
if static --- compilation fails
else 2 7 5 3
9> Arraylist is odered while hasset is not
10> Collections is a special type of collection which holds Set of collections
11> <T> GenericsDemo= 10
12>

Flubber
Comparator c= Collections.reverseOrder();
Collections.sort(x,c);

13> Props HashMap


s=new Treeset(s);
14>TreeSet map= new TreeSet();
map.add("one");
map.add("two");
map.add("three");
map.add("four");
map.add("one");
Iterator it= map.iterator();
while(it.hasNext())
ANS: four one three two
15> least normal form is 1nf;
16> data conversion is not possible in DBMS

17> revoke all on u123; Ans: Update


18>

constructors can be abstract Ans: all are false

19> c-style in loop c) while(line=(source.readLine()!=null))


20) File class contains Present working directory--- Flase
21>buffered input stream --- array
22) inputstream and output stream are byteoriented-----true
23)Demo final variable; compil fail false

24)state of obj is similar to atribute of the calss true

25) Private int i=j;


private int j=10;
ng

26)class Test this.x

ans:

b) compilation fails farward referenci

Ans: 3020

27)Behaviour of class is same as object (True)

28)StatusDemo------

ID=o status=D

29) variables are not characteristics of objects

30) Test1

50 10

31) public default private

decreasing order accesseibility

32) iside func1--- Ans option 'c'


32) static variable can have data befor object creation

33) constructor will not have return type


34) Test1----

static method

main method

hashtable implements
lenght of array size
3 2 1 b) is wrong
Collections is a special type of collection which holds Set of collections (corr
ect

You might also like