Saturday, 26 May 2012

DotNet Interview Questions 2012



1.What is the difference between VB6 and VB.Net?
2.True or False: A Web service can only be written in .NET?
3.How do you turn off cookies for one page in your site?
4.Where on the Internet would you look for Web services?
5.What should you do to store an object in a Viewstate?
6.What is managed code and managed data?
7.What?s wrong with a line like this ? DateTime.Parse(myString).
8.Why is catch(Exception) almost always a bad idea?
9. What?s the difference between Response.Write() and Response.Output.Write()?
10.How many classes can a single .NET DLL contain?
11.How would one do a deep copy in .NET?
12.Which control cannot be placed in MDI?
13.With respect to security ,which one is the better choice?.Net or J2EE? Explain.
14.What is the root class in .Net ?
15.What is "Common Type System" (CTS)?
16.Briefly explain how server form post-back works (perhaps ask about view state as well).
17.What Is The Difference Between ViewState and SessionState?
18.Advantages of VB.NET?
19.What's ArrayList in .Net (VB.Net or C#) What's the advantageous using ArrayList.
20.What does this do? gacutil /l | find /i ?about?
21.How can you clean up objects holding resources from within the code?
22.How to judge a person for a team if you are allowed to ask only 2 questions to him?
 23.What is early binding and late binding?
 24.Advantages of migrating to VB.NET?
 25.How can i return string by vilating duplicates(inpyt like asdfsda but output should be 2a2d2sf and 2a,2d,2s,f)?

Friday, 25 May 2012

Spring Framework Interview Questions?



1.Explain Spring?
2.What are the different modules in Spring framework?
3.What is Spring Framework?
4.What is the Core container module?
5. What is AOP module?
6. What is Application context module?
7.What is web module?
8. What are object/relational mapping integration module?
9.What is JDBC abstraction and DAO module?
10.What is Application context module?
11.What is a BeanFactory?
12. What is web module?
13.What is XMLBeanFactory?
14.Explain Bean lifecycle in Spring framework?
15.How do add a bean in spring application?
16.How can you override beans default lifecycle methods?
17. What are the different types of bean injections?
18.What are the different types of events related to Listeners?
19.What is a Jointpoint?
20. What are the different advice types in spring?
21.What kind of exceptions those spring DAO classes throw?
22.How can you create a DataSource connection pool?
23.How do you write data to backend in spring using JdbcTemplate?
24.Explain about BatchPreparedStatementSetter?
25.What is a Pointcut?

Thursday, 24 May 2012

What are the new features in C# 2.0?


Support for all of the new framework features such as generics, anonymous methods, partial classes, iterators and static classes. See the .NET FAQ for more on these features.

Delegate inference is a new feature of the C# compiler which makes delegate usage a little simpler. It allows you to write this:

    Thread t = new Thread(ThreadFunc);

Instead Of This:

    Thread t = new Thread( new ThreadStart(ThreadFunc) );

Another minor but welcome addition is the explicit global namespace, which fixes a hole in namespace usage in C# 1.x. You can prefix a type name with global:: to indicate that the type belongs to the global namespace, thus avoiding problems where the compiler infers the namespace and gets it wrong.

Finally C# 2.0 includes some syntactic sugar for the new System.Nullable type. You can use T? as a synonym for System.Nullable<T>, where T is a value type. As suggested by the name, this allows values of the type to be 'null', or 'undefined'.

Does C# support multiple inheritance (MI)?

No, though it does support implementation of multiple interfaces on a single class or struct.

Does C# replace C++?


There are three options open to the Windows developer from a C++ background:
1.Forget C++ and use C#.
2.Stick with standard C++. Don't use .NET at all.
3.Use C++ with .NET. Microsoft supply a .NET C++ compiler that produces IL rather than machine code. (To make full use of the .NET environment (e.g. garbage collection), a set of extensions are required to standard C++, called C++/CLI.)

Each of these options has merits, depending on the developer and the application, but for most general purpose applications C# is a much more productive environment than C++.
Where existing C++ code must be used with a new application, the existing code can be wrapped using C++/CLI to allow it to interop with C#.

What is C#?

C# is a general-purpose object-oriented programming language designed by Microsoft. It is loosely based on C/C++, and is very similar to Java. 

Design Patterns Interview Questions?


1.Factory Design Pattern?
2.Why is the study of patterns important?
3.Builder Design Pattern?
4.Prototype Design Pattern?
5.Singleton Design Pattern?
6.Adapter Design Pattern?
7.What major patterns do the Java APIs utilize?
8.Composite Design Pattern?
9.Decorator Design Pattern?
10.Where can I find good examples of the Prototype pattern?
11.What is a software design pattern?
12.Proxy Design Pattern?
13.How do I document a design pattern?
14.Memento Design Pattern?
15.How do you write a Thread-Safe Singleton?
16.Iterator Design Pattern?
17.COR Design Pattern?
18.Command Design Pattren?
19.State Design Pattern?
20.Strategy Design Pattern?
21.Flyweight Design Pattern?
22.Abstract Factory Design Pattern?
23.Mediator Design Pattern?
24.What is an example of a design pattern?
25.Bridge Design Pattern?
26.What are the differences between analysis patterns and design patterns?
27.Interpreter Design Pattern?
28.What is the Reactor pattern?
29.10.Facade Design Pattern?
30.What are Collaboration Patterns?
31.Can you explain factory pattern?
32.Can you explain builder pattern?
33.Can you explain prototype pattern?
34.Can you explain shallow copy and deep copy in prototype patterns?
35.Can you explain abstract factory pattern?