How to run shell commands using SSH connection in Java

How to Run shell commands using SSH connection in Java In this tutorial we will see how to run shell commands on a SSH enabled server using Java. I am using JSch java library to connect to remote ssh server and execute the shell commands.You can download the latest version of JSch.jar file from the official website. If you are having a maven [...]

Read more

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

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