install Maven on windows

As we discussed in previous tutorials that Apache maven is Java based project management tool so JDK is the first requirement. Let us discuss step by step maven installation on windows. Install maven on windows: Check Java installation on your machine. Use c:\> java –version command to verify the java installation. Install the java software … Read more

Difference between Ant and Maven

Difference between Ant and Maven: Ant Maven Ant doesn’t has formal conventions such as a common project directory, so we need to provide information of the project structure in build.xml file. Maven consists of conventions to place source code, compiled code etc. So we don’t need to provide information about the project structure in pom.xml file. Ant … Read more

apache maven features

Maven Objective: Maven’s primary objective is to provide developers a comprehensive project model which is reusable, maintainable, and easier to comprehend. It is developed by Apache group to build multiple projects together, to publish project information and to share JARs across multiple projects. Maven features: Simple project setup that follows best practices. Consistent usage across … Read more

Android Core Building Blocks

A piece of code with a well-defined life cycle e.g. Activity, Receiver, Service, etc, is what an android component can be simply understood as. Activities, views, intents, services, content providers, fragments, and AndroidManifest.xml are the core building blocks or fundamental components of android. Activity: Being similar to a Frame in AWT, an activity as a … Read more

TypeScript ambient module

TypeScript ambient module: As we discussed in earlier tutorials TypeScript provides the facility to safely and easily use existing JavaScript libraries like jquery, angularjs, nodejs etc. Ambient declarations allow us to safely use existing popular JavaScript libraries. Ambient declaration files are saved with .d.ts extension. Syntax to declare ambient variables or modules: declare module ModuleName … Read more

TypeScript module

TypeScript module: A module refers to a set of standardized parts or independent units that can be used to construct a more complex structure. TypeScript modules provides a way to organize the code for better reuse. Syntax: export interface InterfaceName { //Block of statements } The import keyword is used to use the declared module … Read more

TypeScript namespaces

TypeScript NameSpace: TypeScript namespace is a way to organize your code. Internal modules in typescript are now referred to namespaces. The namespace keyword is used to define a namespace. Syntax: namespace NameSpaceName { export interface IInterfaceName { } export class ClassName { } } Access the class or interface in another namespace: NameSpaceName.ClassName; Example: namespace … Read more

Typescript duck typing

TypeScript duck typing: Duck-typing is a powerful feature which brings strong typing concepts in TypeScript code. TypeScript provides the duck typing type-checking which focus on the shape that values have. It checks for the presence of certain properties in the objects instead of the actual object type. The following example does not allow substitution of … Read more

Typescript object

TypeScript Object: A real world entity is known as an object. Like every real world object, software objects also have state and behavior. State of the object is represented by data members or fields and behavior is represented by methods. In TypeScript an object represents an instance which contains set of key value pairs. The … Read more

TypeScript abstract class

TypeScript Abstract Class: Abstract class is a way of implementing 0 to 100 Syntax: abstract class className { // declare fields // declare abstract/non-abstract methods } Abstract method: A method with no implementation i.e. without braces and followed by a semicolon. Syntax: abstract return_type methodName(); Example: abstract class Department { constructor(public name: string) { } … Read more