ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is the difference b/w Readonly Variable and Constant 
Variable?
 Question Submitted By :: 31/12/05
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference b/w Readonly Variable and Constant Variable?
Answer
# 1
Read Onely and Consat Varribles are same but Read onely 
Variables you can assign the Values at Runtime

Ex. Date
 
Is This Answer Correct ?    8 Yes 2 No
Madhav Rao. A From Polaris
 
  Re: What is the difference b/w Readonly Variable and Constant Variable?
Answer
# 2
variable used to store the data
Read only variable:-
Read only variable means read only but not allow to write
constant:
constant variable specify the constant value.
 
Is This Answer Correct ?    4 Yes 1 No
Satyambabu
 
 
 
  Re: What is the difference b/w Readonly Variable and Constant Variable?
Answer
# 3
Read only variable value is changed at runtime.

but Constant variable value doesn't change.
 
Is This Answer Correct ?    3 Yes 2 No
Kamalakannan.a
 
  Re: What is the difference b/w Readonly Variable and Constant Variable?
Answer
# 4
Readonly Variable can be accessed while instantiating the
Class and CONSt - you have to manually code the constant in
each and every project. 

Like:
  ReadOnly Property age() As Integer
        Get
            Return 98
        End Get
         
    End Property
 
Is This Answer Correct ?    2 Yes 1 No
Cherran
 
  Re: What is the difference b/w Readonly Variable and Constant Variable?
Answer
# 5
constants are dealt with at compile-time, while static 
readonly fields are set at the time they are evaluated at 
run-time. 
the constant value will need to be recompiled if the 
constant value changes. Libraries referencing a static 
readonly field will reference the field and not the value, 
thus they will pick up any change in the field without the 
need for recompilation
constants will only support value types plus the 
special .NET ones string and null while Static readonly 
fields are able to hold reference types too.
So, constants should be used when it is very unlikely that 
the value will ever change, or if no external apps/libs 
will be using the constant. Static readonly fields should 
be used when run-time calculation is required, or if 
external consumers are a factor
 
Is This Answer Correct ?    4 Yes 1 No
Arun
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
How do you validate Date by using which validation Control? HCL3
in my windows application i have to show excelwork sheetwhich is stored in the local system can any one tell me the code?  1
when a program of vb.net is written in notepad it occupies always 1kb of memory why?  1
What is difference between Abstract Class and Interface?  1
what are the types of threading models in VB.net ? Satyam1
Is there any easy way to convert VB6 programs to VB.Net?  3
1.wht is satellite assembly??? 2.How Garbage Collector works can u explain ???? ABC3
How to create Crystal Report in vb.net with coding Ascent1
Is VB.NET object oriented? What are the inheritances does VB.NET support ? Digital-GlobalSoft11
concept of object oriented programming Patni5
what is vb.net?  9
What is the difference between Abstract Classes and Interfaces? Give the answer as a table format....  5
What are the similarities between class and structure? Ksb5
What is "Friend" in VB.Net?  2
How to store jpeg / gif / bmp image in database and how to retrieve them? The most stressful condition is database is distributed and stored images can be retrive from any computer in network and any one can store images from other computer!! plss help its urgent.......RAHUL RATHOD  2
1234 123 12 1 how to design above pic in vb.net? ABC2
when we will use console ?  3
what are the advantage in vb.net and different between vb and vb.net TCS4
what do you mean by .Net Framework Guru-Tech11
What are the objects in asp.net and tell the purpose of those objects Ascent2
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com