Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Articles in March of year 2012

12
 
.Net interview questions: - Mention the five levels in CMMI?
There are five levels of the CMMI. According to the SEI, Level 1 – Initial At maturity level 1, processes are usually ad hoc and the organization usually does not provide a stable environment. Success in these organizations depends on the competence and heroics of people in the organization and not on the use of proven processes. In spite of this ad hoc, chaotic environment, maturity level 1 organizations often produce products and services that work; however, they frequently exceed the
Java interview questions: - How will you explain Native Interface in JAVA?
JNI is a mechanism by which you can invoke method written in native language like C and C++. Native languages allow you to use a platform specific feature which is not in control of java language. For instance if you want java to interact directly with some specific type of hardware it will extremely difficult to achieve it. So you can write a C code and declare its native methods and call the same in Java. Figure: - JNI in action The above figure indicates how JVM interacts with JNI
.Net interview questions: - Can you explain why is it preferred to not use finalize for clean up?
Problem with finalize is that garbage collection has to make two rounds in order to remove objects which have finalize methods. Below figure will make things clear regarding the two rounds of garbage collection rounds performed for the objects having finalized methods. Figure: - Garbage collection in actions In this scenario there are three objects Object1, Object2, and Object3. Object2 has the finalize method overridden and remaining objects do not have the finalize method overri
Java interview questions: - Mention the flow between bootstrap, extension and system class loader?
To understand this answer we will use below simple class lets get in to details of how the class will be loaded. Import Koirala.Interview.Java; public class mySimpleClass { public static void main(String[] args) { String myStr = "I am going to get a job"; System.out.println(myStr); }} Figure: - Flow between class loaders The above class uses “String” class that means it has reference to “java.lang.String”.JVM will request the system class loader to load “java.lang.String
ASP.NET interview questions: - How will you differentiate between trace and debug in ASP.NET?
There is also a fundamental difference in thinking when we want to use trace and when want to debug. Tracing is a process about getting information regarding program's execution. On the other hand debugging is about finding errors in the code. Debug and trace enables you to monitor the application for errors and exception without VS. NET IDE. In Debug mode compiler inserts some debugging code inside the executable. As the debugging code is the part of the executable they run on the sa
Java interview questions: - Elaborate fundamentals of deep and shallow Cloning?
This is the most practical oriented Java Interview Questions which may be asked during the Interview by the Interviewer. Many times in project you need to create exact copy of the object and operate on them. To do this there two ways of doing it Shallow clone and Deep clone. When an object is Shallow cloned the parent object or the top level object and its members are duplicated. But any lower level objects are not duplicated. Rather references of these objects are copied. So when an objec
.NET interview questions: - What do you mean by various roles in Six Sigma implementation?
Sigma means deviation in Greek language. Deviation means how much variations exist in a set of data. For instance let’s say in a software maintenance project out of 100 defects 68 defects are rectified to the mark and remaining bounce back that means your bug fixing process is on “2 Sigma” level. I had described only from bug fixing perspective. But this can be applicable to any process organization. Figure: - SIX Sigma Values Therefore, I should only have 3.4 defects in a million de
Java Interview questions: -Will you explain marshaling & unmarshalling in Java?
This is the most practical oriented Java Interview Questions which may be asked during the Interview by the Interviewer. Marshalling: Marshalling creates an XML document from a content tree To marshal a content tree Create a JAXBContext object Create a Marshaller object (Marshaller marshaller = jaxbContext.createMarshaller();) Set required properties using setProperty method of Marshaller marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, new Boolean(true));
ADO.NET interview questions: - What are the various ways to implement optimistic locking in ADO.NET?
Following are the ways to implement optimistic locking using ADO.NET:- When we call “Update” method of Data Adapter it handles locking internally. If the Dataset values are not matching with current data in Database, it raises concurrency exception error. We can easily trap this error using Try. Catch block and raise appropriate error message to the user. Define a Date time stamp field in the table. When actually you are firing the UPDATE SQL statements, compare the current timesta
Java Interview Questions: – Explain the main components of JDBC?
This is the most practical oriented Java Interview Questions which may be asked during the Interview by the Interviewer. Driver Manager: Manages a list of database drivers. Matches connection requests from the java application with the proper database driver using communication Driver: The database communications link, handling all communication with the database. Normally, once the driver is loaded, the developer need not call it explicitly. Conn
12