Life's random bits By b1thunt3r (aka Ishan Jain)…
CSharp vs Java

CSharp vs Java

Ishan jain
In a sense Java and C# are quite similar, but when you get a bit under the tip you will notice some of the difference between both languages. For some reason C# felt a bit more easier the Java to me, and a bit (a lot) more powerful.

There are things like defining getter and setter in a bit more smart way then just creating a method.

Java:

public class Test() {
  private int _test;
  public int getTest() {
    return this._test;
  }
  public void setTest(int t) {
    this._test = t;
  }
}

C#:

public class Test() {
  private int _test;
  public int Test {
    get { return this._test; }
    set { this._test = value; }
  }
}

This is just a little example on how easier C# is in its way. With C# 3.0 (.Net Framework 3.0) Microsoft introduced Linq, a engine for creating advance AI (artificial intelligence). With Linq a XML file can be handled as a SQL database (almost). If Linq was nothing it would not have been ported to PHP.