Friday, May 29, 2020

Java - Generics

It would be nice if we could write a single sort method that could sort the elements in an Integer array, a String array, or an array of any type that supports ordering. Java Generic methods and generic classes enable programmers to specify, with a single method declaration,...

Thursday, May 28, 2020

Java - Data Structures

The data structures provided by the Java utility package are very powerful and perform a wide range of functions. These data structures consist of the following interface and classes − ◉ Enumeration ◉ BitSet ◉ Vector ◉ Stack ◉ Dictionary ◉ Hashtable ◉ Properties All these classes are...

Wednesday, May 27, 2020

JFileChooser Example - Show Open Save File Dialog in Java Swing Application

Hello guys, if you worked in Java GUI based application then you may know that Swing provides class javax.swing.JFileChooser that can be used to present a dialog for the user to choose a location and type a file name to be saved, using the showSaveDialog() method. Syntax of...

Tuesday, May 26, 2020

Java 8 Lambda Expressions with examples and Rules

Java 8 is first released in 2014 and introduced lot of new features. Lambda expressions are the most significant change in java 8 version. As of java 7, Oracle/Sun people have given impartance to the object oriented programming languages but in java 8, they have introduced functional programming...

Sunday, May 24, 2020

Why use Cloud Computing? Advantages and Disadvantages

Cloud Computing has been a buzz word in the IT world from the last few years. When it first appeared, like many things, a lot of people has dismissed it as being next big thing, but cloud computing has certainly lived up to expectation and truly shift how...

Friday, May 22, 2020

5 Ways to implement Singleton Design Pattern in Java

This article introduces the singleton design pattern and its 5 implementation variations in Java You will learn different ways to implement a singleton pattern and also understand the challenges with creating a singleton class like thread-safety issues and serialization issues. Problem At most one instance of a class...

Thursday, May 21, 2020

A Java XMPP Load Test Tool

In this article, we will develop an XMPP Load Test Tool written in Java. 1. Introduction The eXtensible Messaging and Presence Protocol (XMPP) is a communication protocol for message-oriented middleware based on XML (Extensible Markup Language). It is an open protocol standardized by the Internet Engineering Task Force...

Pages (26)1234567 »