Introduction to Java Enum data type with example programs

Introduction to Java Enum data type with example An Enum in Java is a special data type that can be used to define a fixed set of constants. Similar to a class, an enum can contain constants, methods etc. The Java enum constants are implicitly public, static and final. Much like a class, an enum defines a type that can be used to define fields, variables [...]

Read more

How to send mail using JavaMail API

How to send mail using JavaMail API Sending emails is a common task in most of the real life applications. Java provides a robust API(JavaMail) that we can use to send [...]

WatchService in Java with example program

WatchService in Java with example program Java 7 added a new feature to its NIO package called Watch Service API which allows applications to monitor a directory for [...]

FizzBuzz game program in Java

FizzBuzz game program in Java FizzBuzz is a fun game played by school children. Players take turns to count numbers incrementally. The rules are simple: if the number is [...]

Introduction to Google Guice framework in Java

Introduction to Google Guice framework in Java This post is an introduction to Google Guice framework in Java. Guice (pronounced ‘juice’) is a lightweight dependency [...]

PipedInputStream and PipedOutputStream in Java with example

PipedInputStream and PipedOutputStream in Java with example A piped I/O is based on the producer-consumer pattern, where the producer produces data and the consumer consumes [...]

PipedReader and PipedWriter in Java with example

PipedReader and PipedWriter in Java with example A pipe connects an input stream and an output stream. A piped I/O is based on the producer-consumer pattern, where the [...]

BitSet class in Java with example program

BitSet class in Java with example program In this post we will learn about BitSet class in Java with example programs. BitSet is a convenient class for bit manipulation. The [...]

Frequently asked Spring Core interview questions and answers

Frequently asked Spring Core interview questions and answers Spring Framework is one of the most popular Java EE framework for web applications. Nowadays now Spring [...]

Books to learn REST and RESTful Web Services for Java developers

Books to learn REST and RESTful Web Services for Java developers Java is one of the most popular languages to develop back-end services. Most of the interviewers wanting to [...]

Java program to find the largest and smallest number

Java program to find the largest and smallest number Write a Java program to find the largest and smallest number is one of the commonly asked Java coding interview [...]