Java program to print rectangle of stars

Java program to print rectangle of stars Java program to print a particular pattern of stars or numbers is one of the commonly asked Java interview questions. Writing Java programs to print certain pattern will also help you in mastering nested loops and recursion in Java. There are many pattern based programs and one of them is printing rectangular [...]

Read more

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 [...]

Base64 encoding and decoding in Java 8

Base64 encoding and decoding in Java 8 In this post we will discuss about Base64 encoding and decoding of strings in Java 8. Before Java 8, Base64 encoding was officially [...]

exp4j Java library for evaluating math expressions

exp4j Java library for evaluating math expressions exp4j is a free Java library that can be used to evaluate mathematical expressions. It implements Dijkstra's [...]

Best books to learn JPA for Java developers

Best books to learn JPA for Java developers Java Persistence API (JPA) is one of the most widely used open source Java based ORM(Object Relational Mapping) frameworks to [...]

Frequently asked JDBC interview questions and answers

Frequently asked JDBC interview questions and answers A good understanding of JDBC (Java Database Connectivity) API is required to understand and leverage many powerful [...]

Simple Java swing program to count number

Java swing program to count number In this post we sill see simple Java swing program to count number. The program uses a JLabel to hold lable, a JTextField component to [...]

Funny source code comments by programmers

Funny source code comments by programmers In this post we will see some of the funniest source code comments written by programmers. I hope it will bring some smile in your [...]

Introduction to Google Protocol Buffers – Protobuf in Java

Introduction to Google Protocol Buffers - Protobuf in Java Default serialization mechanism provided in Java is not that efficient and has a host of well-known problems (see [...]

How to take screenshot programmatically in Java

How to take screenshot programmatically in Java You may be surprised to know that by writing a few lines of code in JAVA , you can actually take a snapshot of your screen. In [...]

How to convert string to byte array and vice versa in Java

How to convert string to byte array and vice versa in Java Sometimes we have to convert String variable into a Byte array format, for example, in encryption or to display [...]