أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
Object oriented programming concepts
Differences:
Java is Open source while C# not( that's why Java have one of the larges community)
Java is platform independent( you can run Java application anywhere Linux, Mac, windows, etc.) while C# can be run only on the limited platform like Windows
For Java application, there are too many servers like Apache Tomcat, Weblogic, Websphere, etc. while the C# application can be run only on IIS
Most of the frameworks of Java are the free and open source while in C# a limited choice available
C# follow most of the OOPS concept while Java lesser than C# like C# does not have the primitive type
Both C# and Java are Object Oriented Programming Languages.
If i were to compare Java 7 and c#3.
It would be as follows.
Comparing Java 7 and C# 3
(Some features of Java 7 aren't mentioned here, but the using statement advantage of all versions of C# over Java 1-6 has been removed.)
Not all of your summary is correct:
Beyond that (and what's in your summary already):
This is not exhaustive, but it covers everything I can think of off-hand.
C# and java both were derived from C++, and therefore they have similar roots, both are widely used for web programming. We discuss the difference between C# and java these are as follows:
C# has more primitive datatypes
Java uses static final to declare a class constant while C# uses const.
Java does not provide for operator overloading.
C# supports the struct type and java does not.
Unlike java, all C# datatypes are object.
C# provides static constructors for initialization.
In java, parameters are always passed by value, c# allows parameters to be passed by reference by Ref keyword.
C# includes native support for properties, java does not.
Java does not directly support enumerations.
In java, the switch statement can have only integer expression, in C# supports integer and string both.
JAVA is Object-Oriented while C is procedural. ... Most differences between the features of the two languages arise due to the use of different programming paradigms. C breaks down to functions whileJAVA breaks down to Objects. C is more procedure-oriented whileJAVA is data-oriented.
Java is an object oriented language developed by sun microsystems and now taken over by oracle.
C# is the object oriented language developed by Mircosoft
. C# is an object-oriented programming language developed by Microsoft that runs on .Net Framework. 2)Java programming language is designed to be run on a Javaplatform, by the help of Java Runtime Environment (JRE).
C# implements properties as part of the language syntax.
C# allows switch statements to operate on strings.
C# allows anonymous methods providing closure functionality.
C# allows iterator that employs co-routines via a functional-style yield keyword.
C# has support for output parameters, aiding in the return of multiple values, a feature shared by C++ and SQL.
C# has the ability to alias namespaces.
C# has "Explicit Member Implementation" which allows a class to specifically implement methods of an interface, separate from its own class methods. This allows it also to implement two different interfaces which happen to have a method of the same name. The methods of an interface do not need to be public; they can be made to be accessible only via that interface.
C# provides integration with COM.
They are both Object Oriented, different developers. C# runs on .Net while JAva is on Java Platform