Searching for "he"

Q:

What is the Set interface ?

Answer

- The Set interface provides methods for accessing the elements of a finite mathematical set


- Sets do not allow duplicate elements


- Contains no methods other than those inherited from Collection


- It adds the restriction that duplicate elements are prohibited


- Two Set objects are equal if they contain the same elements

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

How do you decide when to use ArrayList and When to use LinkedList?

Answer

If you need to support random access, without inserting or removing elements from any place other than the end, then ArrayList offers the optimal collection. If, however, you need to frequently add and remove elements from the middle of the list and only access the list elements sequentially, then LinkedList offers the better implementation.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

How do you decide when to use HashMap and when to use TreeMap ?

Answer

For inserting, deleting, and locating elements in a Map, the HashMap offers the best alternative. If, however, you need to traverse the keys in a sorted order, then TreeMap is your better alternative. Depending upon the size of your collection, it may be faster to add elements to a HashMap, then convert the map to a TreeMap for sorted key traversal.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

When should I use abstract classes and when should I use interfaces?

Answer

Use Interfaces when…


- You see that something in your design will change frequently.


- If various implementations only share method signatures then it is better to use Interfaces.


- You need some classes to use some methods which you don't want to be included in the class, then you go for the interface, which makes it easy to just implement and make use of the methods defined in the interface.


 


Use Abstract Class when…


- If various implementations are of the same kind and use common behavior or status then abstract class is better to use.


- When you want to provide a generalized form of abstraction and leave the implementation task with the inheriting subclass.


- Abstract classes are an excellent way to create planned inheritance hierarchies. They're also a good choice for nonleaf classes in class hierarchies.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

One of the problems in finding out National Income in India is

A) Non-monetary consumption B) Tax evasion
C) Inflation D) Conspicuous consumption
 
Answer & Explanation Answer: A) Non-monetary consumption

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

Q:

The Minimum Alternative Tax (MAT) was introduced in the Budget of the Government of India for the year

A) 1991-92 B) 1992-93
C) 1995-96 D) 1996-97
 
Answer & Explanation Answer: D) 1996-97

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

Q:

What is the name of the group of agriculture exporting countries formed in 1986, that has put agriculture on the multi lateral trade agenda at the WTO?

A) The Cairns Group B) ASEAN
C) SCANA D) NAFTA
 
Answer & Explanation Answer: C) SCANA

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

Q:

Gas authority of India Ltd.(GAIL) is likely to bag equity participation in a transational pipeline project from the Caspian Sea to Central Europe. What is the name of this 3,300 km pipeline project?

A) Natural Gas Transmission Company B) SNTGN Transgar SA
C) O M V Aktiengesellschaft D) Nabucco Natural Gas Pipeline Project
 
Answer & Explanation Answer: D) Nabucco Natural Gas Pipeline Project

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy