Monthly Archives: March 2011

.NET interview questions: – What are the different principle of OOPS?

Answer: Different principles of OOPS are Abstraction, Encapsulation, Polymorphism and Inheritance.1. Abstraction:- It is a thought process which show only the necessary properties. 2. Encapsulation:- Hiding complexity of a class. 3. Inheritance:- Defining a Parent-Child Relationship. 4. Polymorphism:- Object Changes … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, principle of OOPS, programming interview questions | Tagged , , , , , | Leave a comment

.NET and Java J2ee Design pattern interview question: – What is the difference between Template and Strategy pattern

Answer: Below are the main differences between these two design patterns: Template Design pattern Defines outline for algorithms and allows sub class to override some steps. Efficient in terms of less redundant code. Depends on super class for methods. Strategy … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, Design Pattern Interview Questions, Java J2ee, programming interview questions, Strategy pattern | Tagged , , , , , , | Leave a comment

.NET interview questions :- What is the difference between class and structures ?

.NET interview questions :- What is the difference between class and structures ? Answer: 1. Classes are reference types and structs are value types. So in other words class will be allocated on a heap and structs will be allocated … Continue reading

Posted in .Net Interview Questions, C# interview questions, class, Csharp interview questions, programming interview questions, structures | Tagged , , , , , , | Leave a comment

Design pattern interview questions :- Which design patterns have you used in your project ?

Answer: First thing what ever you say , for heaven sake do not say we had used all design patterns  . Look at your project and see which design pattern have you used. Almost all projects use design patterns knowingly … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, Design pattern, Design Pattern Interview Questions, progarmming interview questions | Tagged , , , , , | Leave a comment

.NET interview questions :- What are Regex / regular expressions ?

Answer: Regex or regular expression helps us describe complex patterns in texts. Once you have described these patterns you can use them to do searching, replacing, extracting and modifying text data. Below is a simple sample of regex. The first … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, Csharp interview questions, progarmming interview questions, Regex, regular expressions | Tagged , , , , , , | Leave a comment

.NET and Java J2ee Design pattern interview question :- What is the difference between Decorator and Adapter pattern?

Answer: Below is the main difference between these two design patterns.Decorator Design pattern Used to deal with new behavior or responsibilities without affecting existing code. Provides a wrapper over objects to apply same method which yields different results based on … Continue reading

Posted in .NET and C# training, .Net Interview Questions, Adapter pattern, C# interview questions, Csharp interview questions, Decorator, Java J2ee Design pattern interview question, progarmming interview questions | Tagged , , , , , , , | Leave a comment

.NET and Java J2ee design pattern interview question :-What is the difference between Object and class adapters?

Answer: Below are the main difference between these 2 patterns. Object adapter Can adapt classes as well as sub classes since uses composition More flexible since dynamic polymorphism can be used with composition Class adapter Can adapt classes or sub classes … Continue reading

Posted in .NET and C# training, .Net Interview Questions, C# interview questions, class adapters, Csharp interview questions, Java J2ee Design pattern interview question, Java J2ee interview questions with answers, Object, progarmming interview questions | Tagged , , , , , , , , | Leave a comment

.Net Interview Questions :- Can you explain template pattern?

Template pattern is a behavioral pattern. Template pattern defines a main process template and this main process template has sub processes and the sequence in which the sub processes can be called. Later the sub processes of the main process … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, .Net Interview Questions, Csharp interview questions, programming interview questions, Template patterns | Tagged , , , , , | Leave a comment

.Net Interview Questions:- Can you explain composite pattern?

.Net Interview Questions:- Can you explain composite pattern? GOF definition :- A tree structure of simple and composite objects Many times objects are organized in tree structure and developers have to understand the difference between leaf and branch objects. This … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, .Net Interview Questions, composite patterns, Csharp interview questions, patterns, programming interview questions | Tagged , , , , , | Leave a comment

.NET and SQL Server interview question: – What is difference between truncate and delete?

Answer: Both Truncate and Delete are used to delete data from the tables.  Below are some important differences. TRUNCATE is a DDL (data definition language) statment whereas DELETE is a DML (data manipulation language) statement. In DELETE command we can … Continue reading

Posted in .net, .NET and C# interview questions and answers, .NET and C# training, Csharp interview questions, Delete, programming interview questions, SQL Server, SQL server training, truncate | Tagged , , , , , , , , | Leave a comment