Java Interview Question And Answer

1. What is the difference between procedural and object-oriented programs? a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is …

Read More »

ADO.NET interview Questions-Part 2

1.What are the advantages of ADO.NET? The advantages of ADO.NET are as follows:- It is not dependent on live connection The data can be cached in Datasets Data Source independent of Datasets The data’s are persisted in the XML Data Structure are defined by schemas 2.Name some of the top …

Read More »

ADO.NET interview Questions-Part 1

What is the namespace in which .NET has the data functionality classes? .NET provides the following name functionality:- System.data System.XML System.Data.OleDB System.Data.SqlClient 2. What are the two fundamental objects in ADO.NET? The two fundamental objects in ADO.NET Datareader Dataset 3. What is difference between dataset and datareader? The major difference …

Read More »

How to define a route in ASP.NET MVC?

You can define a route in ASP.NET MVC as given below: public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute( “Default”, // Route name “{controller}/{action}/{id}”, // Route Pattern new { controller = “Home”, action = “Index”, id = UrlParameter.Optional }// Default values for above defined parameters ); } protected void Application_Start() { …

Read More »

How Model, View and Controller communicate with each other in ASP.NET MVC?

There are following rules for communication among Model, View and Controller: 1. User interacts with the Controller. 2. There is one-to-many relationship between Controller and View means one controller can mapped to multiple views. 3. Controller and View can have a reference to model. 4. Controller and View can talk …

Read More »