Tuesday, October 4, 2016

Enum

As described in the Sun/OracleJava documentation, a Java enum “you should use enum types any time you need to represent a fixed set of constants

No, enums are supposed to be a complete static enumeration.
At compile time, you might want to generate your enum .java file from another source file of some sort. You could even create a .class file like this.
In some cases you might want a set of standard values but allow extension. The usual way to do this is have an interface for the interface and an enum that implements that interface for the standard values. Of course, you lose the ability to switch when you only have a reference to the interface.


Wednesday, August 24, 2016

What is API

An application-programming interface (API) is a set of programming instructions and standards for accessing a Web-based software application or Web tool. A software company releases its API to the public so that other software developers can design products that are powered by its service.
For example, Amazon.com released its API so that Web site developers could more easily access Amazon's product information. Using the Amazon API, a third party Web site can post direct links to Amazon products with updated prices and an option to "buy now."

Tuesday, May 31, 2016

Git clone error with Mac-Mount lion -IntelliJ Idea

1) Ensure you have installed git properly
2) Ensure the environment variables are set properly
3) Ensure the Git/Github in the preferences of IntelliJ Idea and test the connections

I had the same issue,I could solve the issue by correcting the path to git executable as there were multiple git installed in the system.

#Clone failed
#Git failed error code 5