Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
DogFood


Features of c# over Java
Question Posted on 05 Apr 2012

Home >> DotNet >> C# >> Features of c# over Java




Below are the some common differences between c# and Java
(1)We can do kind of Delegates in Java, but its not as clean as in c#.
(2)Lambdas- Which are way better than anonymous inner classes. (C# has anonymous inner classes, too.)
(3)LINQ (Language Integrated and Query ) implemented with c#
(4)Operator overloading- This feature can be abused, but it is still occasionally useful, especially in libraries and DSLs.
(5)Properties- No need to write getters and setters. Everything looks like a direct field access, even if it isn’t.
(6)Yield CO-Routine capability- This is a powerful and highly useful capability, especially for lazy iterators.
(7)Extension methods- They permit you to “extend” existing classes.
(8)Null coalescing operator that provides a simple syntax for dereferencing a reference and supplying a default if the reference is null.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |