Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Advertisements


website counter



ASP.NET Interview Questions set 14


Posted Date: 30 Sep 2007    Resource Type: Articles/Knowledge Sharing    Category: General

Posted By: Bala       Member Level: Diamond
Rating:     Points: 4



1. How do you convert a string into an integer in .NET?
Int32.Parse( string)

2. How do you box a primitive data type variable?
Assign it to the object, pass an object.

3. Why do you need to box a primitive variable?

To pass it by reference.

4. What’s the difference between Java and .NET garbage collectors?

Sun left the implementation of a specific garbage collector up to the JRE developer, so their performance varies widely, depending on whose JRE you’re using. Microsoft standardized on their garbage collection.

5. How do you enforce garbage collection in .NET?
System.GC.Collect ( );

6. Can you declare a C++ type destructor in C# like ~MyClass ()?

Yes, but what’s the point, since it will call Finalize(), and Finalize() has no guarantees when the memory will be cleaned up, plus, it introduces additional load on the garbage collector.

7. What’s different about namespace declaration when comparing that to package declaration in Java?

No semicolon.

8. What’s the difference between const and read only?

You can initialize read only variables to some runtime values. Let’s say your program uses current date and time as one of the values that won’t change. This way you declare public read only string DateT = new DateTime ().ToString ().

9. What does \a character do?

On most systems, produces a rather annoying beep.

10. Can you create enumerated data types in C#?

Yes.

11. What’s different about switch statements in C#?

No fall-throughs allowed.

12. What happens when you encounter a continue statement inside the for loop?

The code for the rest of the loop is ignored; the control is transferred back to the beginning of the loop.

13. Is goto statement supported in C#? How about Java?

Gotos are supported in C# to the fullest. In Java goto is a reserved keyword that provides absolutely no functionality.




Responses

Author: pritesh    17 Oct 2007Member Level: Bronze   Points : 1
it's fantastic
thank u
i collect this Q in my collectio


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: ASP.NET Interview Questions set 13
Previous Resource: International Conference on SOCIAL DEVELOPMENT, SOCIAL MOVEMENTS AND THE MARGINALIZED
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources


Contact Us    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.