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 1887
Q:

What are the advantages of cloud architecture?

Answer

- Cloud architecture uses simple APIs to provide easily accessible services to the user through the internet medium. 


- It provides scale on demand feature to increase the industrial strength. 


- It provides the transparency between the machines so that users don’t have to worry about their data. Users can just perform the functionality without even knowing the complex logics implemented in cloud architecture.


- It provides highest optimization and utilization in the cloud platform

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

0 1886
Q:

What is difference between Path and Classpath?

Answer

Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1886
Q:

What is assembly manifest?

Answer

Assembly Manifest is a file that contains data that describes how the elements present inside an assembly are connected to each other. The assembly manifest contains assembly metadata to define the scope of the assembly and resolve references to resources and classes.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 1886
Q:

What is Thread ?

Answer

A thread is a lightweight subprocess, a smallest unit of processing. It is a separate path of execution. It shares the memory area of process.



As shown in the above figure, thread is executed inside the process. There is context-switching between the threads. There can be multiple processes inside the OS and one process can have multiple threads.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1885
Q:

The chart of accounts is designed to

A) alphabetized the accounts to make reading easier for its financial statement users B) summarize the transactions and determine their ending balances
C) meet the information needs of a company and other financial statement users D) analyse the accounts and organize them in order of dollar amount to simplify the accounting information for users
 
Answer & Explanation Answer: C) meet the information needs of a company and other financial statement users

Explanation:

The chart of accounts is designed to to meet the information needs of a company and other financial statement users.

Report Error

View Answer Report Error Discuss

Filed Under: Accounts Payable
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk , Analyst

0 1884
Q:

Explain how garbage collection deals with circular referrences?

Answer

The .Net runtime knows about all the references between the objects. It can identify all the circular references that are reachable from the root and hence finalize them to free them all at once if and when needed

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 1884
Q:

What is database clusters?

Answer

Group of tables physically stored together because they share common columns and are often used together is called Cluster.

Report Error

View answer Workspace Report Error Discuss

1 1883