crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Features of c# over Java
Question Posted on 05 Apr 2012Home >> 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



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




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#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap