What is Visitor Design Pattern?

Visitor is a behavioural type of design pattern. Although this is not a very popular design pattern due to its narrow applicability, it can be carefully used to resolve complex behavioural situations. This pattern is useful when an object structure contains different kinds of operations to use in different situations. Elements of an object structure … Read more

Spring MVC Controllers

Spring MVC Controller provides simple but great way for creating Web Application using Java technology. Spring gives developer to ease of development using MVC design pattern. MVC stands for Mode-View-Controller, in this approach we can divide out software development into 3 layers namely Model, View, and Controller. Model layer is responsible for data related works, … Read more

New features in Java 10

Recently Oracle has announced the general availability of new features in Java 10 (JDK 10) on Mar 20, 2018. We can download Production-ready binaries of JDK 10 under the GPL from: Oracle [ http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html ] OpenJDK [ http://jdk.java.net/10/ ] Oracle has now shifted to a 6 months’ release pattern. Therefore, users will not be getting … Read more

Write to file in Java

This tutorial would be focusing on different ways of write to file using Java. Stream is a general mechanism of I/O in java. Stream provides sequential access of data. An input stream can be used by an application to read data. An output stream to write data. A file, network connection, arrays can act as … Read more