General Idea The general idea of Java Security Manager is to restrict what an application can do. This is important as it provides a separate environment for programs to do whatever they do without affecting the host system or other
Create JSF2 application with Eclipse Mars
Create a JSF2 application with the new Eclipse Mars and Java 8.
Java – comparing numeric primitives
Comparing numeric primitives in Java.
Java – break outer loop from inner loop
Whenever you use break; (or continue;), by default it only affects the current loop where it is invoked . If you are in a inner loop, surely the only loop that you can break; from is that loop. What if you need to break; from the outer-most loop in order to proceed to the next set of instructions?
Eclipse – Highlight selected text
I’ve been using this copy of Eclipse Mars since last year but only noticed today that selected texts are not highlighted. So, I thought maybe they made it configurable or turned off by default.
Java Primitive Float And Double – What’s the difference?
Any floating-point literal in Java is by default of a double type.
Java Numeric Promotion Rules
Java Primitive Types Consider the following Java primitive types and take note of the type’s size, e.g., 8-bit. For this post, we can ignore boolean, and char as they are not numeric types. [wp_ad_camp_1] Given the following table of Java
Create Your Own Functional Interface in Java 8
What is a Functional Interface? [wp_ad_camp_1] Java 8 offers Lambda expressions to help us write better, and concise codes. Lambda expressions revolve around Functional Interfaces. So, what are Functional Interfaces? The simplest definition is: Functional Interfaces are Java Interfaces with
Converting Between array and List in Java
Converting Between array and List in Java.
Java 8 Convert values in a Stream using Map
Convert any value or object to a different type. For instance, MyEntityBean to MyEntityAPI. No loops. Just Lambda.