Java

Java HashMap - HashMap in Java — step-by-step Programming tutorial on Progressive Robot

Java HashMap – HashMap in Java

URL: https://www.progressiverobot.com/java-hashmap/ Java HashMap is one of the most popular Collection classes in java. Java HashMap is Hash table based implementation. HashMap in java extends AbstractMap class that implements Map interface. Java HashMap !java hashmap, hashmap in java, java hashmap example, java hashmap tutorial Some of the important points about HashMap in Java are; Java […]

Read more
Exception Handling in Java — step-by-step Programming tutorial on Progressive Robot

Exception Handling in Java

Introduction An _exception_ is an error event that can happen during the execution of a program and disrupts its normal flow. Java provides a robust and object-oriented way to handle exception scenarios known as Java Exception Handling. Exceptions in Java can arise from different kinds of situations such as wrong data entered by the user, […]

Read more
Java Exception Interview Questions and Answers — step-by-step Programming tutorial on Progressive Robot

Java Exception Interview Questions and Answers

URL: https://www.progressiverobot.com/java-exception-interview-questions-and-answers/ Java provides a robust and object-oriented approach to handle exception scenarios known as Java Exception Handling. Sometime back I wrote a long post on [Exception Handling in Java](/community/tutorials/exception-handling-in-java) and today I am listing some important Java Exceptions Questions with Answers to help you in interviews. [What is an Exception in Java?](#java-exception) [What are […]

Read more
ObjectOutputStream in Java - write Object to File — step-by-step Programming tutorial on Progressive Robot

ObjectOutputStream in Java – write Object to File

URL: https://www.progressiverobot.com/objectoutputstream-java-write-object-file/ ObjectOutputStream in Java can be used to convert an object to OutputStream. The process of converting object to stream is called [serialization in java](/community/tutorials/serialization-in-java). Once an object is converted to Output Stream, it can be saved to file or database, send over the network or used in socket connections. So we can use […]

Read more
Java Stream collect() Method Examples — step-by-step Programming tutorial on Progressive Robot

Java Stream collect() Method Examples

URL: https://www.progressiverobot.com/java-stream-collect-method-examples/ Java Stream collect() performs a mutable reduction operation on the elements of the stream. This is a terminal operation. What is Mutable Reduction Operation? A mutable reduction operation process the stream elements and then accumulate it into a mutable result container. Once the elements are processed, a combining function merges all the result […]

Read more
Java SE 8 Interview Questions and Answers (Part-2) — step-by-step Programming tutorial on Progressive Robot

Java SE 8 Interview Questions and Answers (Part-2)

URL: https://www.progressiverobot.com/javase8-interview-questions-part2/ In my previous post, I have discussed some important Java SE 8 Interview Questions and Answers. In this post, we are going to discuss some more Java SE 8 Interview Questions and Answers. Before reading this post, please go through my previous post at: "[Java SE 8 Interview Questions (Part 1)](/community/tutorials/javase8-interview-questions-part1)". Java SE […]

Read more
Core Java Quiz — step-by-step Programming tutorial on Progressive Robot

Core Java Quiz

Welcome to Core Java Quiz. Java is an object-oriented programming language. Core Java Quiz In this quiz, you will be tested on Core Java basics and OOPS concepts. There are some code snippets too to test your basic Java coding skills. Some of the questions have multiple answers. You can click on the "Reveal Answer" […]

Read more
Steps to Configure SSL on Tomcat and Setup Auto Redirect from HTTP to HTTPS — step-by-step Security tutorial on Progressive Robot

Steps to Configure SSL on Tomcat and Setup Auto Redirect from HTTP to HTTPS

Secured Socket Layer (SSL) is the cryptography protocol to provide message security over the internet. It works on the notion of Private and Public keys and messages are encrypted before sending it over the network. To configure SSL on Tomcat, we need a digital certificate that can be created using Java keytool for development environment. For production environment, you should get the digital certificate from SSL certificate providers, for example, Verisign or Entrust.

Read more
String vs StringBuffer vs StringBuilder — step-by-step Programming tutorial on Progressive Robot

String vs StringBuffer vs StringBuilder

URL: https://www.progressiverobot.com/string-vs-stringbuffer-vs-stringbuilder/ String is one of the most widely used classes in Java. StringBuffer and StringBuilder classes provide methods to manipulate strings. We will look into the difference between StringBuffer and StringBuilder. StringBuffer vs StringBuilder is a popular Java interview question. String vs StringBuffer vs StringBuilder The string is one of the most important topics […]

Read more
CHAT