Showing posts with label Differences. Show all posts
Showing posts with label Differences. Show all posts

What are the differencec between Web Services and WCF ?

Sunday, March 4, 2012

Sno
WebServices
WCF
1 Can send/receive messages using SOAP over HTTP Can send/receive using SOAP and any transport protocol like HTTP,
TCP, named pipes, and Microsoft Message Queuing (MSMQ), etc.
2 Can only be hosted in IIS and the security is limited. Can be hosted in IIS, self-host servers with console applications or Win NT
services or any other server.
3
Doesnt support

supports binary .NET – .NET communications, distributed transactions, WS-*
specifications, queued messaging and Restful communications.
4
Simple when compared to WCF
Little more work is needed


www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

What is the difference between Convert.ToInt32(string) and Int32.Parse(string) ?

Thursday, August 6, 2009

Int32.Parse thorws an exception when null value is passed whereas Convert.ToInt32 returns zero . Apart from this both function in a simillar manner.


www.codecollege.NET

What is the difference between EVAL and BIND ?

Eval is readonly and used to display whereas Bind is used to both display and update .


www.codecollege.NET

What are the differences between DataReader and DataAdapter ?

Wednesday, August 5, 2009



























Sno DataReader
DataAdapter
1 Works in Connected Mode Works in Disconnected Mode
2 Can have only one record at a time Can have more than 1 records.
3 Is ForwardOnly and Readonly Can navigate front and back and editable
4 Faster Slower





www.codecollege.NET

What are the Differences between Response.Expires and Expires.Absolute ?

Expires:
The Expires property specifies the duration of time before a page that is cached on a browser expires.
ExpiresAbsolute:
The ExpiresAbsolute property specifies the date and time at which a page cached on a browser expires.


www.codecollege.NET

What is the main difference between MVP and MVC ?

Monday, July 27, 2009

In MVP the view is completely controlled by the Presenter, whereas in MVC, the controller and the model can update the view.


www.codecollege.NET

Name some of the popular Web Presentation Patterns?

1. MVC (Mode View Controller)
2. Page Controller Pattern
3. Front Controller Pattern


www.codecollege.NET

What are the Differences between TRUNCATE and Delete ?

Monday, July 20, 2009


































Sno

TRUNCATE


DELETE

1

TRUNCATE is faster

Comparitively
slower.
2

Removes all rows from a table

Can remove specific rows with
Where clause
3

Can not be Rolled back.

Can be.
4

Is DDL
Command.


Is DML Command.

5

Resets identity of the
table.

Does not.
6

Removes the data by deallocating the data pages and
logs the deallocation
.


Removes one row at a time and records an entry in
the transaction log for each deleted row
.





www.codecollege.NET

What are the differences between Primarykey and Unique key?

















Sno
Primarykey
Unique key
1
Creates Clustered index.
Creates Non-Clustered index.
2 Null values are not allowed Allows.


www.codecollege.NET

What are the differences between Inline code and Code Behind Code?

Friday, July 17, 2009

















Sno
Inline
code
Code Behind
Code
1
Its
within .aspx file.
Its in a external class file.
2 Dynamically compiled.
Compiled prior to deployment and
linked with .aspx file.

What are the differences between TypeOf() and GetType() ?

















Sno
TypeOf()
GetType()
1
Its an operator.
Its a method.
2 Can't be overloaded
Has lot of overloads.


www.codecollege.NET

What are the differences between Dll and Exe ?





















Sno
Dll
Exe
1 Objects of DLLs can be created Cant
2 In-Process Out-Process
3
Cant be started as a standalone.

Can
be.

What area the differences between Global.asax and Web.Config?

Wednesday, July 8, 2009

Differences between global.asax and web.config


























Sno
global.asax
web.config
1 Class File Its an XML file
2 There can be only one for an application there can be many if under different sub-folders
3
Can have Application
and Session events

Can't
4
Need
to be recompiled when changes are made
No need to compile
when changes are made.


 


 

What are the differences between const and readonly ?

Differences between const and readonly


























Sno
const
readonly
1 Can't be static. Can be instance level or static
2 evaluated at design time evaluated at run time
3
Initialized at declaration

Initialized at declaration and in constructor
4
must be of integral type or enumeration
In addition it can have complex types with new keyword and
enumerations are not allowed


 

what are the Differences between Abstract Class and Interface ?

Difference between Abstract Class and Interface





























Sno Abstract
Class
Interface
1 Can have implemented Methods Cant
2 A class can inherit only one abstract class A Class can implement any number of Interfaces.
3 We go for Abstract classes on such situations
where we need to give common functionality for group of related classes
We go for Interface on such situations where we
need to give common functionality for group of un-related classes
4 If you add a new method, then you can provide a
default implementation and so no need to make any change to existing work.
If you add a new method, then you need to change
all the existing work.
5
Static and Instance constants are possible.
Only
Static  constants are possible.


 


 

What is Serialization ? What are the Types of Serialization and their differences?

Serialization:
It is the process of converting an object to a form suitable for either making it persistent or tranportable.
Deserialization is the reverse of this and it converts the object from the serialized state to its original state.

Types:
1. Binary
2. XML

Differences:













Sno Binary XML
1

It preserves type fidelity , which is useful for preserving


the state of the object between transportation and invocation.


It doesnt preserves type fidelity and hence state cant be


maintained.

2 As it is the open standard its widely used Not that much compared to
Binary.

What are the Differences between Server.Transfer and Response.Redirect ?

Tuesday, July 7, 2009

Difference between Server.Transfer and Response.Redirect

























Sno Server.Transfer Response.Redirect
1 The navigation happens on the server-side ,so client history is not updated The navigation happens on the client-side ,so client history is  updated
2 Data can be persist accros the pages using Context.Item collection Context.Items loses the persisitance.
3 No Round-trips Makes a Round-trip
4 Has Good encapsulation No

What are the differences between value and reference types

























Sno


Value Types



Reference Types



They contain their data directly

They store a reference to their value’s memory

2

They are allocated for storage either in stack or inline in structure..

They are allocated for storage in heap

3

can be built-in (implemented by the runtime), user-defined, or enumerations

self-describing types, pointer types, or interface types.


What are the differences between machine.config and web.config files?





























Sno

Web.config

Machine.config



It is a config file for a single application.

It is a config file which is common for all the applications in a machine

2

It will be available in the application folder.

It is available in the Microsoft.NET\Framework\{version}\CONFIG Folder.

3

The settings in the web.config overrides that of Machine.config

Cant do.

4

Automatically installed when visual studio .net is installed

This is automatically created when you create an asp.ne website




What are the differences between Trace and Debug?



















Sno

Trace

Debug



Works in both Debug and Release mode

Works
only in Debug mode.

2

Trace is enabled by default in visual studio

Debug is not enabled. You can manually do that.




Blog Widget by LinkWithin