Interview Question: Why Garbage Collection required?
Dec13

Interview Question: Why Garbage Collection required?

Welcome to CodeSpread! What is garbage collection? In two words “Memory Management”. In two lines “Managing the lifetime of object starting from creation, allocation and release it back to free memory pool.” Why it is required? We have two scenarios here, Case 1: Where resources are not released. Scenario: Resources will keep on getting consumed and will result in memory leak. Case 2: Where resources are released irrespective of still being used in the code. Scenario: May result in null pointers exceptions, corrupted memory areas or loss of data. Garbage Collector manages the lifetime of all objects and avoids any early-release or late-release of...

Read More
Interview : a question mark?
Oct28

Interview : a question mark?

I like going for interviews for two simple reasons: I found that this is the simplest way to remain updated with the latest knowledge. If we look at the IT trend, daily new software are getting launched and technologies are getting updated.It is a bit difficult to predict which technology is going to be considered as the next hot skill. Although blogs,tech news, forum discussions keeps us updated about new arrivals and their positives and negatives but an interview can only indicate what is the latest skill, companies or organizations are expecting from the candidate. It definitely tells us where we stand. I can recall few questions which simply put a question mark on my knowledge. They are basic questions but got neglected during the preparation. These questions were asked during .Net,c# interview. Write 15 control names which you have used in your project. I was able to recall some 12-13 control although i have used many more controls. HTML generated for controls like Timer, dropdownlist etc. Message codes like 404,301,200. Abstract class can be written same as Interface with all methods as abstract then what is the difference. If given a choice, which project you will create ‘website’ or ‘webapplication’ and why? Why we are still worried about memory consumption, when garbage collection is there? Write few examples from your project where you have applied OOP? These questions are not difficult but requires some basic attention during the development. What...

Read More