Java

How To Install Apache Tomcat 9 on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Tomcat 9 on Ubuntu 18.04

Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. In this tutorial, you will install and configure Tomcat 9 on your Ubuntu 18.04 server.

Read more
Java 9 Features with Examples — step-by-step Programming tutorial on Progressive Robot

Java 9 Features with Examples

URL: https://www.progressiverobot.com/java-9-features-with-examples/ Java 9 is a major release and it has brought us a lot of features for developers. In this article, we will look into Java 9 features in detail. Java 10 has been released, for a complete overview of Java 10 release, go through [Java 10 Features](/community/tutorials/java-10-features). Java 9 Features ![java 9 features](images/java-9-features-with-examples-section-1.png) […]

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

40 Java Collections Interview Questions and Answers

URL: https://www.progressiverobot.com/java-collections-interview-questions-and-answers/ [Java Collections Framework](/community/tutorials/collections-in-java-tutorial) is one of the core APIs of java programming language. It's one of the important topics for java interview questions. Here I am listing some important java collections interview questions and answers to help you in the interview. This is directly coming from my 14+ years of experience in Java […]

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
Java is Pass by Value, Not Pass by Reference — step-by-step Programming tutorial on Progressive Robot

Java is Pass by Value, Not Pass by Reference

URL: https://www.progressiverobot.com/java-is-pass-by-value-and-not-pass-by-reference/ Introduction Many Java programmers question whether Java is _pass by value_ or _pass by reference_. This article summarizes why Java is always pass by value. First, what does pass by value and pass by reference mean? Pass by value: The method parameter values are copied to another variable and then the copied object […]

Read more
Session Management in Java - HttpServlet, Cookies, URL Rewriting — step-by-step Programming tutorial on Progressive Robot

Session Management in Java – HttpServlet, Cookies, URL Rewriting

URL: https://www.progressiverobot.com/java-session-management-servlet-httpsession-url-rewriting/ Session Management in Java Servlet Web Applications is a very interesting topic. Session in Java Servlet are managed through different ways, such as Cookies, HttpSession API, URL rewriting etc. ![Session Management in Java, Session in Java Servlet using Cookies, HttpServlet, URL Rewriting](images/java-session-management-servlet-httpsession-url-rewriting-section-1.png) This is the third article in the series of Web Applications […]

Read more
Java switch case String — step-by-step Programming tutorial on Progressive Robot

Java switch case String

URL: https://www.progressiverobot.com/java-switch-case-string/ Today we will look into Java Switch Case String Example. Being a java programmer, I know the importance of String and how many times it's used for conditional flow. Whether you have a simple method that behaves differently for different input String or a Servlet controller class to check the incoming action and […]

Read more
Java XML Parser — step-by-step Programming tutorial on Progressive Robot

Java XML Parser

URL: https://www.progressiverobot.com/java-xml-parser/ Java XML parser is used to work with xml data. XML is widely used technology to transport or store data. That's why there are many java xml parsers available. Java XML Parser !java xml parser Some of the commonly used java xml parsers are; DOM Parser SAX Parser StAX Parser JAXB There are […]

Read more
JUnit Assert Exception - JUnit 5 and JUnit 4 — step-by-step Programming tutorial on Progressive Robot

JUnit Assert Exception – JUnit 5 and JUnit 4

URL: https://www.progressiverobot.com/junit-assert-exception-expected/ We can test expected exceptions using [JUnit 5](/community/tutorials/junit5-tutorial) assertThrows assertion. This [JUnit assertion](/community/tutorials/junit-assertions) method returns the thrown exception, so we can use it to assert exception message too. JUnit Assert Exception Here is a simple example showing how to assert exception in JUnit 5. String str = null; assertThrows(NullPointerException.class, () -> str.length()); JUnit […]

Read more
CHAT