Interview Questions

Q:

What is the purpose of garbage collection in Java, and when is it used ?

Answer

The purpose of garbage collection is to identify and discard those objects that are no longer needed by the application, in order for the resources to be reclaimed and reused.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 3182
Q:

How to define a constant variable in Java?

Answer The variable should be declared as static and final. So only one copy of the variable exists for all instances of the class and the value can't be changed also.
static final int PI = 2.14; is an example for constant.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 3180
Q:

What is sqlcode -811?

Answer

SELECT statement has resulted in retrieval of more than one row.

Report Error

View answer Workspace Report Error Discuss

0 3179
Q:

If an array with name as "names" contain three elements, then how will you print the third element of this array?

Answer

Print third array element document.write(names[2]);

Note:- Array index starts with 0.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 3179
Q:

What are the important topologies for networks?

Answer

BUS topology:


In this each computer is directly connected to primary network cable in a single line.


 


STAR topology:


In this all computers are connected using a central hub.

Report Error

View answer Workspace Report Error Discuss

2 3177
Q:

Managing advertising, sales promotion and public relations:

What according to you is sales promotion?

Answer

We can say that sales promotion is a cost effective technique by which an organisation can achieve its sales volume or the marketing objectives by providing value added product and not just an ordinary product to the end user or even the intermediaries. It is short term by nature and is suitable enough for generating sales within a short span of time. Sales promotion techniques are being increasingly used by retailing organisations some of which include advertising, providing discounts and allowances or a 'buy one get one free offer' etc.

Report Error

View answer Workspace Report Error Discuss

0 3172
Q:

What is the difference between Consigner and Consignee ?

Answer

Consigner is the person who is the owner of the goods and who delivers the goods to others(consignee) Whereas Consignee is the person who receives the goods and just holds the goods and will not be the owner.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

6 3164
Q:

Explain the use of lookup tables and Aggregate tables.

Answer

At the time of updating the data warehouse, a lookup table is used. When placed on the fact table or warehouse based upon the primary key of the target, the update is takes place only by allowing new records or updated records depending upon the condition of lookup.


The materialized views are aggregate tables. It contains summarized data. For example, to generate sales reports on weekly or monthly or yearly basis instead of daily basis of an application, the date values are aggregated into week values, week values are aggregated into month values and month values into year values. To perform this process aggregate function is used.

Report Error

View answer Workspace Report Error Discuss

0 3161