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 ?

Tuesday, July 28, 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.



www.codecollege.NET

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

Wednesday, July 8, 2009

























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.


www.codecollege.NET

What are the 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


www.codecollege.NET

what are the Differences 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.


www.codecollege.NET

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 is an Index and its Types and Differences between them ?

Tuesday, June 30, 2009

What is an Index and its Types and Differences between them ?


What is an Index?


Indexing is a mechanism which makes record
fetching faster. It does this by having pre-sorted the rows of the table.


Types of Indexes:




  1. Clustered.


  2. Non-Clustered.




















Sno Clustered Non - Clustered
1 It reorders the physical storage of records in the table. It sorts and maintain a separate storage.
2 There can be only one Clustered index per table. More than one.
3 The leaf nodes contain data The leaf node contains pointer to data

Differences between Dataset and DataReader

Sunday, June 28, 2009



























Sno Dataset DataReader
1 Disconnected Mode Connected Mode
2 Can navigate back and forth Can navigate forward only
3 Data is editable Data is Readonly
4 Can contain more than one table and relationships Can contain only one row at a time.
5 Slower as having more overhead Faster when compared with dataset.

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 is the difference between CCW and RCW ?

Saturday, June 27, 2009













Sno

CCW

RCW

1

COM to .NET communication happens through COM Callable Wrapper

.NET to COM Communication happens through Remote Callable Wrappter

LinkWithin

Blog Widget by LinkWithin

Recommended Books