Java Notes - fcrimins/fcrimins.github.io GitHub Wiki

Virtual Memory Usage from Java under Linux, too much memory used (10/16/16)

Stream in Java 8 (7/25/16)

Inter-thread Communication in Java (7/7/16)

Java Concurrency Tutorials (4/15/16)

Java 8 Streams Cheatsheet (1/29/16)

Using Traits in Java 8 (1/28/16)

Lazy Evaluation in Java (1/19/16)

4 Reasons Why Java is Still #1 (1/19/16)

Programming Peculiarities: 6 Java Oddities (12/10/15)

Cool Java 8 Features: To Use or not to Use (11/16/15)

  • Includes a nice simple example comparing implementations of 2 functions written in both functional and imperative style--as well as a combined implementation of the 2 styles.

Even If Oracle Is Losing Interest In Java, Should You Worry? (11/13/15)

Synchronized java.util.HashMap vs. java.util.concurrent.ConcurrentHashMap (11/9/15)

The Future of the Java Ecosystem (10/14/15)

Streams in Java 8 (also see: Functional Programming)

Java on GPGPUs

Java Resources

Coursera Java

Java Design Patterns

  • abstract class vs. interface: "Interface are used to represent adjective or behavior e.g. Runnable, Clonable, Serializable etc"
  • "classes to provide Market Data": "MarketData should be composed with a MarketDataProvider by using dependency injection. So when you change your MarketData provider Client won't get affected because they access method form MarketData interface or class."
  • "What is main benefit of using factory pattern ? Where do you use it? Factory pattern’s main benefit is increased level of encapsulation while creating objects. If you use Factory to create object you can later replace original implementation of Products or classes with more advanced and high performance implementation without any change on client layer. See my post on Factory pattern for more detailed explanation and benefits."
    • "The factory methods are typically implemented as virtual methods, so this pattern is also referred to as the 'Virtual Constructor'."

Email: Java

Email: Java sites

Email: C++ to Java

Exceptions

Java Varargs

Singleton in Java