Difference between ByVal and ByRef?

Answers were Sorted based on User's Feedback



Difference between ByVal and ByRef?..

Answer / ashok

whenver a data type is derived from a structure then it s
said to be value type


EX:int,uint,short



where a data type is dervied from class definition then it
is said to be reference type

EX:object,string,delegate,interface

Is This Answer Correct ?    5 Yes 0 No

Difference between ByVal and ByRef?..

Answer / hemali

ByVal is use to pass the value..
& ByRef is use to pass the reference of variable.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

0 Answers  


Explain the namespace classes used in asp.net mvc? : asp.net mvc

0 Answers  


What is new asp.net core?

0 Answers  


What is inproc mode in session?

0 Answers  


What is viewstate?

5 Answers   Microsoft,






can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

0 Answers  


What is the significance of ASP.NET routing?

0 Answers   NA,


What are server-side comments in ASP.NET?

0 Answers   Winsol Solutions,


How many types of controls are there in asp.net?

0 Answers  


What are the events in a page life cycle?

0 Answers  


I have got less marks in bsc it So how to get interview.tell me

1 Answers  


Explain how is a property designated as read-only?

0 Answers  


Categories