View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 29 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 33 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 13 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 24 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 36
1.The given program is used to check weather the object is instance of class or not?

public class Deccansoft
{
public static void main(String[] args) 
{
Object o=new ArrayList().iterator();
System.out.println((o instanceof List)+",");
System.out.println((o instanceof Iterator)+",");
System.out.println(o instanceof ListIterator);
}
} 
Options:
  1. false, false, false
  2. false, false, true
  3. false, true, false
  4. false, true, true
View Answer/Explanation:
c
Explanation:

Question No: 2 of 36
2. Which  of these methods deletes all the elements from  invoking? 
Options:
  1. clear()
  2. refresh()
  3. reset()
  4. delete()
View Answer/Explanation:
a
Explanation:

Question No: 3 of 36
3. which of these interface is not a part of java collection framework? 
Options:
  1. List
  2. Set
  3. SortedList
  4. SortedMap
View Answer/Explanation:
c
Explanation:

Question No: 4 of 36
4.Given program is used to adding and removing the elements using vector class. Find the output?

class Deccansoft
{
public static void main(String args[])
{
Vector obj = new Vector(4,2);
obj.addElement(new Integer(3));
obj.addElement(new Integer(2));
obj.addElement(new Integer(5));
obj.removeAll(obj);
System.out.println(obj.isEmpty());
}
} 
Options:
  1. 0
  2. 1
  3. true
  4. false
View Answer/Explanation:
c
Explanation:

Question No: 5 of 36
5.Given program is used to adding and deleting elements using Stack. find predicted output?

class  Deccansoft
{
public static void main(string args[])
{
Stack obj = new Stack();
obj.push(new Integer(8));
obj.push(new Integer(2));
obj.pop();
obj.push(new Integer(5));
System.out.println(obj);
}
} 
Options:
  1. [3, 5]
  2. [3, 2]
  3. [3, 2, 5]
  4. [3, 5, 2]
View Answer/Explanation:
a
Explanation:

Question No: 6 of 36
6. Given program is used to assigning the values to the  using Hashtable.

class public static void main(String args[])
{
Hashtable obj= new Hashtable();
obj.put(“A”, new Integer(3));
obj.put(“B”, new Integer(2));         
obj.put(“C”, new Integer(8));      
 obj.remove(new String(“A”));
System.out.println(obj);
}
} 
Options:
  1. {C=8, B=2}
  2. {C=8, B=2}
  3. {A=3, C=8, B=2}
  4. {A=3, C=8, B=2}
View Answer/Explanation:
b
Explanation:

Question No: 7 of 36
7. Given program is used to adding and removing set of Integers using BitSet. Predict the generated output?

public class Deccansoft
{
public static void main(String[] args) 
{
BitSet obj=new BitSet(5);
for(int i=0; i<5;++i)
obj.set(i);
obj.clear(2);
System.out.println(obj);
}
} 
Options:
  1. {0, 1, 3, 4}
  2. {0, 1, 2, 4}
  3. {0, 1, 2, 3, 4}
  4. {0, 0, 0, 3, 4}
View Answer/Explanation:
a
Explanation:

Question No: 8 of 36
8. Find the output for this program?
public class Deccansoft
{
public static void main(String[] args) 
{
BitSet obj=new BitSet(5);
for(int i=0; i<5;++i)
obj.set(i);
obj.clear(2);
System.out.println(obj);
}
} 
Options:
  1. {0, 1, 3, 4}
  2. { }
  3. {0, 1, 2, 3, 4}
  4. {0, 0, 0, 3, 4}
View Answer/Explanation:
b
Explanation:

Question No: 9 of 36
9. Given programs is used to add elements in any order. Find the generated output for it?

class Deccansoft
 {
public static void main(String args[])
 {
ArrayList obj=new ArrayList();
obj.add(“A”);
obj.add(“B”);
obj.add(“C”);
obj(1,”D”);
System.out.println(obj);
 }
 } 
Options:
  1. [A, B, C, D]
  2. [A, D, B, C]
  3. [A, D, C]
  4. [A, B, C]
View Answer/Explanation:
b
Explanation:

Question No: 10 of 36
10. Given program is used to find the length of the object?

class Deccansoft
{
ArrayList obj=new ArrayList()
{
obj.add(“A”);
obj.add(0,”B”);
System.out.print(obj.size());
}
} 
Options:
  1. 0
  2. 1
  3. 2
  4. garbage value
View Answer/Explanation:
c
Explanation:

  1