java basic and advanced concepts

Java is the popular portable language that runs on a variety of platforms, from Windows right up to super powerful mainframes.

The articles in this category will introduce both simple and advanced concepts that are useful when performing java software development.

We will cover various idea such as the java platform, object oriented programming with java, exception handling, setting up development environments and more…

How to Get Current Date And Time In Java

Introduction For are many reasons that you would need to retrieve the current date and time in a java application. When you create some sort of transaction in your application, like a customer placing an order, you need to stamp it with date and time to record when the order was placed When we receive …

How to Get Current Date And Time In Java Read More »

Reading A Text file In Java

Java makes available Reader classes to read character data from a number of different input sources. The BufferedReader class efficiently reads text from a file. Heres a simple Junit test as an example. and heres the output we get

Sorting In Java8 With Lambdas and Comparators By Example

Lets learn how to sort objects in Java8 with the use of lambdas and comparators. Java provides two ways of sorting objects, the Comparable interface, and the Comparator class. They sound very similar so they are easy to get confused so lets also take a look at the difference between these two. The Comparable Interface …

Sorting In Java8 With Lambdas and Comparators By Example Read More »