C# (pronounced as "C-sharp") is a modern high-level object oriented and type safe
programming language developed under the leadership of Anders Hejlsberg at Microsoft
in 2002 for developing managed software applications. It is one of the most
popular programming languages of .Net framework.
Platform
A platform could be
hardware architecture and some software, on the top of which others
applications operate. In another word, it is environment with required
resources.eg. CLR (common language runtime) on which managed codes runs, JVM
(Java virtual machine).
Framework
Framework is ready to use
collections of classes and interfaces used for developing particular types of applications.
Frameworks bring consistency in software development.eg.Net framework, spring
and struts in java, Laravel and zend framework in Php.
Type safety
When data types of one type is assigned to other type unknowingly, we get the error at compile time or undesirable result at runtime and preventing such types of error is known as type safety. C# is a type safe language.
When we add integer and
string value and assigned its result into integer variable throws "cannot
implicitly convert string to int" compile time error.
There are two types of languages
one is type safe and another is not. JavaScript is not a type safe language.
<script> var number = 10;//integer var string = "10";//string var sum = string + number;//concate or addition ? alert(sum);//result 1010 </script>
Brilliant.
ReplyDeletethank you ma'am
Delete