Interview Questions Answers
oracle sql developer
  
7. 11. How can you sort the elements of the array in descending order?
By calling Sort() and then Reverse() methods

8. What's the advantage of using System.Text.StringBuilder over System.String?
StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

9. Can you store multiple data types in System.Array?
No

10. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.

Pervious4-6    Next
College Project Ideas Jobs for Freshers
city night life Alphonso Mangos
bollywood movie quiz Sample Aptitude Questions
Aishwarya Rai quiz Sania Mirza Quiz