Default method in interface in java – part 1

This default method comes to scene when developers need to update existing interface without updating that interface implement classes updating.

Default methods must have to have an implementation.  And developer can update default method as they want but implemented classes can decide either update with newly added default method or not.

(more…)

Angular2: Resolve TypeScript TS2304 compilation errors in Visual Studio

I have recently updated my angular2 project and fell into this TS2304 error in Visual Studio 2015 Error TS2304 Build:Cannot find name ‘Promise’. Error TS2304 Build:Cannot find name ‘Map’. Error TS2304 Build:Cannot find name ‘Iterable’. Error TS2304 Build:Cannot find name ‘Set’. Error TS2304 Build:Cannot find name ‘Iterator’. Package.json: { “name”: “pms”, “version”: “1.0.0”, […]

via Angular2: Resolve TypeScript TS2304 compilation errors in Visual Studio — Muhammad Hassan