Interview Questions

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

0 2129
Q:

What are the things that you need to check in a retail market, as a first line supervisor?

Answer

Applicant should answer that as a first line supervisor, he/she should directly supervise sales workers in a retail department. He/She would get involved in management functions such as purchasing, budgeting, accounting and ensure quality of supply apart from his/her regular supervisor work.

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

0 2127
Q:

What is abstract method?

Answer

abstract method is a method declared with abstract modifier but  with out body.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2126
Q:

What is the difference between "==" and "==="?

Answer

"==" checks equality only,
"===" checks for equality as well as the type.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2126
Q:

Which of the following statements is true concerning subqueries?

A) Does not start with the word SELECT. B) Involves the use of an inner and outer query.
C) Cannot return the same result as a query that is not a subquery. D) All of the above
 
Answer & Explanation Answer: B) Involves the use of an inner and outer query.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: SQL
Job Role: Analyst , Database Administration , IT Trainer

0 2125
Q:

What is needed to make a multiple choice list with a custom view for each row?

Answer

Multiple choice list can be viewed by making the CheckBox android:id value be “@android:id /text1". That is the ID used by Android for the CheckedTextView in simple_list_item_multiple_choice.

Report Error

View answer Workspace Report Error Discuss

0 2125
Q:

Cheque deposited but not cleared means

Answer

A Bank Reconciliation Statement is a statement prepared periodically by a customer to explain the divergence (difference) between the bank balance as per cash book and the bank balance as per Pass Book. It clearly shows the two differing balances and the outstanding items which causes the balances to disagree.


The objective of preparing such a statement is to know the causes of differences between the two balances and pass necessary correcting or adjusting entries in the books of the firm. But it is to be noted that some differences are automatically adjusted. For example - A cheque that has been sent for collection, but not yet collected, causes a difference between the balance as shown by the pass book and the balance as shown by the cash book, but no adjusting entry is required in the cash book for such a difference because, the bank will credit the firm’s account as soon as the cheque is collected.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2121
Q:

What is session storage and how can you create one?

Answer

Session storage is same like local storage but the data is valid for a session. In simple words the data is deleted as soon as you close the browser.


To create a session storage you need to use “sessionStorage.variablename” . In the below code we have a created a variable called as “clickcount”.


If you refresh the browser the count increases. But if you close the browser and start again the “clickcount” variable starts from zero.


if(sessionStorage.clickcount)


{


sessionStorage.clickcount=Number(sessionStorage.clickcount)+1;


}


else


{


sessionStorage.clickcount = 0;


Report Error

View answer Workspace Report Error Discuss

1 2120