Diffrence between C# and JAVA
C# and java are two language that are used widely for web programming.they both can do server side programming.But in some fact they are differ from each other.today we will discus major Deference between C# and JAVA language.
C# and java both are used in web based programming.C# contains varius feature similar to java.However it contains various feature diferent from Java,which are:
1. C# contains more primitve data type then java.
2. C# support operator overloading while java does not support operator overloading
3. C# support the struct type while java does not.
5. C# provide more data type as compared to java.
4. C# does not provide break statement.The go to statement is used to achieve this.
6. The convention of java is to put one public class in each file and in fact,some compiler require this.C# allows any source file arrangment.
7. C# checks overflow using checked statements.
8. C# provides for each iteration statement for quick and easy iteration over collections and arrays.
9. C# use the is operator instead of the instanceof operator in java.
10.C# allows variables number of perameters using the param keyword.
11. C# language allows parameters to be used by reference by using the ref keyword whereas Java allows parameters to be passed by value.