Tuesday, October 14, 2008

Can multiple catch blocks be executed?

No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block.

Can you override private virtual methods?

No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access.

What is a pre-requisite for connection pooling?

Multiple processes must agree that they will share the same connection, where every parameter is the same,


What is the data provider name to connect to Access database?

Microsoft.Access.

Why does my Windows application pop up a console window every time I run it?

Make sure that the target type set in the project properties setting is set to Windows Application, and not Console Application. If you're using the command line, compile with /target:winexe & not target:exe.


What is the wildcard character in SQL?

Let us say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve La%.


What is the role of the DataReader class in ADO.NET connections?

It returns a read-only dataset from the data source when the command is executed.


What does the This window show in the debugger?

It points to the object that is pointed to by this reference. Object’s instance data is shown.


Describe the accessibility modifier protected internal?

It is available to derived classes and classes within the same Assembly (and naturally from the base class it is declared in).What is an interface class?It is an abstract class with public abstract methods all of which must be implemented in the inherited classes.

0 comments: