Java

Java Reflection Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Reflection Example Tutorial

URL: https://www.progressiverobot.com/java-reflection-example-tutorial/ Java Reflection provides ability to inspect and modify the runtime behavior of application. Reflection in Java is one of the advance topic of core java. Using java reflection we can inspect a class, [interface](/community/tutorials/interface-in-java "What is Interface in Java – Example Tutorial"), [enum](/community/tutorials/java-enum "Java Enum"), get their structure, methods and fields information at […]

Read more
Prototype Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Prototype Design Pattern in Java

URL: https://www.progressiverobot.com/prototype-design-pattern-in-java/ Prototype design pattern is one of the Creational Design pattern, so it provides a mechanism of object creation. Prototype Design Pattern ![prototype design pattern](images/prototype-design-pattern-in-java-section-1.png) Prototype design pattern is used when the Object creation is a costly affair and requires a lot of time and resources and you have a similar object already existing. […]

Read more
How To Use Operators in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Operators in Java

An operator is one or more symbols in combination — from the well-known arithmetic operators such as minus and plus to the more advanced `instanceof`. When you apply operators on values or variables, you get a result from the operation. In this tutorial, you will use unary, binary, and ternary operators in a range of scenarios.

Read more
Java Queue – Queue in Java — step-by-step Programming tutorial on Progressive Robot

Java Queue – Queue in Java

URL: https://www.progressiverobot.com/java-queue/ Java Queue is an interface available in java.util package and extends java.util.Collection interface. Just like Java List, Java Queue is a collection of ordered elements (Or objects) but it performs insert and remove operations differently. We can use Queue to store elements before processing those elements. ![](images/java-queue-section-1.png) Java Queue In this section, we […]

Read more
Google Search from Java Program Example — step-by-step Programming tutorial on Progressive Robot

Google Search from Java Program Example

Sometime back we were looking for a way to search Google using Java Program. We were surprised to see that Google had a web search API but it has been deprecated long back and now there is no standard way to achieve this. Basically google search is an HTTP GET request where query parameter is […]

Read more
How To Use Java HttpURLConnection for HTTP GET and POST Requests — step-by-step Programming tutorial on Progressive Robot

How To Use Java HttpURLConnection for HTTP GET and POST Requests

URL: https://www.progressiverobot.com/java-httpurlconnection-example-java-http-request-get-post/ Introduction The HttpURLConnection class from java.net package can be used to send a Java HTTP Request programmatically. In this article, you will learn how to use HttpURLConnection in a Java program to send GET and POST requests and then print the response. Prerequisites For this HttpURLConnection example, you should have completed the [Spring […]

Read more
Java Ternary Operator — step-by-step Programming tutorial on Progressive Robot

Java Ternary Operator

URL: https://www.progressiverobot.com/java-ternary-operator/ Java ternary operator is the only conditional operator that takes three operands. Java ternary operator is a one liner replacement for if-then-else statement and used a lot in java programming. We can use ternary operator to replace switch also as shown in below example. Java Ternary Operator ![java ternary operator](images/java-ternary-operator-section-1.png) The first operand […]

Read more
How to validate XML against XSD in Java — step-by-step Programming tutorial on Progressive Robot

How to validate XML against XSD in Java

URL: https://www.progressiverobot.com/how-to-validate-xml-against-xsd-in-java/ Java XML Validation API can be used to validate XML against XSD in java program. javax.xml.validation.Validator class is used in this program to validate xml against xsd in java. Validate XML against XSD ![Validate XML against XSD java, java xml validation, xsd validator java](images/how-to-validate-xml-against-xsd-in-java-section-1.png) Here are the sample XSD and XML files used. […]

Read more
How To Install Apache Tomcat 8 on CentOS 7 — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Tomcat 8 on CentOS 7

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. This tutorial covers the basic installation and some configuration of the latest release of Tomcat 8 on your CentOS 7 server.

Read more
CHAT