What are collections and generics
What are collections and generics?
Expert
A collection can be defined as a group of related items that can be referred to as a single unit. The System.Collections namespace provides you with many classes and interfaces. Some of them are - ArrayList, List, Stack, ICollection, IEnumerable, and IDictionary. Generics provide the type-safety to your class at the compile time. While creating a data structure, you never need to specify the data type at the time of declaration. The System.Collections.Generic namespace contains all the generic collections.
1. Here is a short program. It prints out the value of a variable "x". Ernie and Bert disagree about what will be printed: Ernie says, the value gets changed in "changeX" so it will print "7", and Bert says, no, when the function exits the changes get reversed and the value goes back to "5". Explain
What is an Unary operator: It is an operator which takes a single operand. Java's unary operators are as -, +, !, !, ++ and --.
Normal 0 false false
An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to be the number. For example, 6 is a perfect number because 6 = 1+ 2+ 3. Write a function perfect that determines if parameter number is a perfect number. Us
Explain directory and filename?
State the term collection objects in visual base?
Write down some of the benefits of the event-delegation model over event-inheritance model?
Assembler: The program employed to translate a program which is written in assembly language into the binary form of a specific instruction set.
Connection handshake: It is the exchange of messages among two processes in an attempt to create a connection between them.
What is the use of System.Dynamic and System.Runtime.CompilerServices namespaces?
18,76,764
1958994 Asked
3,689
Active Tutors
1435187
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!