26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note :- Sample source code are compiled using VB.<strong>NET</strong> 2005.<br />

Figure:- 1.9 Sample reflection display<br />

Sample source code uses reflection to browse through “Button” class of “Windows.Forms”.If<br />

you compile and run the program following is output as shown in “Sample Reflection Display”.Using<br />

reflection you can also dynamically invoke a method using “System.Type.InvokeMember”.<br />

Note :- System.Type.InvokeMember is left as homework for readers.Believe me you will<br />

enjoy doing it yourself and the concept of reflection will be more clearer.<br />

(P)What are different type of JIT ?<br />

Note :- This question can only be asked when the interviewer does not know what he<br />

wants.It was asked to me in one of interview and for 15 minutes he was roaming around<br />

the same question in order to get answer from me (requirement was for a simple database<br />

project). Beware of such companies and interviewers you can land up no where.<br />

JIT compiler is a part of the runtime execution environment.<br />

In Microsoft .<strong>NET</strong> there are three types of JIT compilers:<br />

33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!