Karthikeya Boyini has Published 2193 Articles

VSAT

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:49:20

3K+ Views

VSATs (Very Small Aperture Terminals) is a two way, lost cost, ground micro station for transmitting data to and from communication satellites. A VSAT has a dish antenna with diameters between 75 cm to 1 m, which is very small in comparison with 10 m diameter of a standard GEO ... Read More

What is the difference between keywords const and readonly in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:41:19

398 Views

ConstConstant fields are the fields that cannot be modified. At the time of declaration, you need to assign a value to it.const int a = 5;ReadonlyA Read-only field is initialized at the time of declaration or you can also set it within the constructor.Let us see an example in which ... Read More

What is the difference between declaration and definition in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:37:03

12K+ Views

Declaration means that variable is only declared and memory is allocated, but no value is set.However, definition means the variables has been initialized.The same works for variables, arrays, collections, etc.VariablesDeclaring a variable.int x;Let’s define and assign a value.x = 10; ArraysDeclaring an array.int [] n // declaring int n= new ... Read More

Important Keywords in C#

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:34:54

363 Views

Some of the key keywords in C#, include.SealedParamsInternalthisabstractSealedWhen you use sealed modifiers in C# on a method, then the method loses its capabilities of overriding. The sealed method should be part of a derived class and the method must be an overridden method.ParamsWhile declaring a method, you are not sure ... Read More

What is the System.Console class and its methods in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:29:16

877 Views

The System.Console class in C# represents the standard input, output, and error streams for console applications.The following are some of the methods of the System.Console class −Refer: MSDN System Class methodsSr.NoMethod & Description1Beep()Plays the sound of a beep through the console speaker.2Beep(Int32, Int32)Plays the sound of a beep of a ... Read More

Random Numbers in C#

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:27:06

22K+ Views

To generate random numbers in C#, use the Next(minValue, MaxValue) method. The parameters are used to set the minimum and maximum values.Next(100, 200);We have set the above method under Random() object.Random rd = new Random(); int rand_num = rd.Next(100, 200);The following is an example −Example Live Demousing System; class Program { ... Read More

How to generate the first 100 even Numbers using C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:24:40

3K+ Views

To generate first 100 even numbers, set a for loop from 1 to 100.for(val = 1; val

What is method hiding in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:22:06

2K+ Views

Method hiding is also known as shadowing. The method of the parent class is available to the child class without using the override keyword in shadowing. The child class has its own version of the same function.Use the new keyword to perform shadowing.Let us see an example.Example Live Demousing System; using ... Read More

What is the difference between a mutable and immutable string in C#?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 07:18:45

4K+ Views

Mutable stringStringBuilder is a mutable string in C#. With StringBuilder, you can expand the number of characters in the string. The string cannot be changed once it is created, but StringBuilder can be expanded. It does not create a new object in the memory.Set StringBuilder −StringBuilder str = new StringBuilder();Let ... Read More

What is the difference between = and: = assignment operators?

karthikeya Boyini

karthikeya Boyini

Updated on 22-Jun-2020 06:58:55

813 Views

Actually, they both are assignment operator and used to assign values but the significant difference between them is as follows −= operator assigns a value either as a part of the SET statement or as a part of the SET clause in an UPDATE statement, in any other case = ... Read More

Advertisements