Java

Java Callable Future Example — step-by-step Programming tutorial on Progressive Robot

Java Callable Future Example

URL: https://www.progressiverobot.com/java-callable-future-example/ Java Callable and Future are used a lot in multithreaded programming. In last few posts, we learned a lot about [java threads](/community/tutorials/multithreading-in-java "Java Thread Tutorial") but sometimes we wish that a thread could return some value that we can use. Java 5 introduced java.util.concurrent.Callable interface in concurrency package that is similar to Runnable […]

Read more
Java Web Application Tutorial for Beginners — step-by-step Programming tutorial on Progressive Robot

Java Web Application Tutorial for Beginners

URL: https://www.progressiverobot.com/java-web-application-tutorial-for-beginners/ Java Web Application is used to create dynamic websites. Java provides support for web application through Servlets and JSPs. We can create a website with static HTML pages but when we want information to be dynamic, we need web application. Java Web Application The aim of this article is to provide basic details […]

Read more
How to generate XSD from Java Class — step-by-step Programming tutorial on Progressive Robot

How to generate XSD from Java Class

In last few posts, we learned about [Java JAXB](/community/tutorials/jaxb-example-tutorial "JAXB Example Tutorial") and how to generate [java class from XSD](/community/tutorials/jaxb2-maven-plugin-xjc-example-generate-java-classes-xsd "How to Generate Java Classes from XSD using XJC Maven Plugin"). Today we will learn how to generate XSD from java classes. Generate XSD from Java Class ![generate xsd from java, xsd generator, java class […]

Read more
Java break statement, label — step-by-step Programming tutorial on Progressive Robot

Java break statement, label

URL: https://www.progressiverobot.com/java-break-statement-label/ Java break statement is used to terminate the loop in between it's processing. We use break reserve keyword for breaking out of the loop in java program. Java break There are two forms of break statement – unlabeled and labeled. Mostly break statement is used to terminate a loop based on some condition, […]

Read more
Java NullPointerException - Detect, Fix, and Best Practices — step-by-step Programming tutorial on Progressive Robot

Java NullPointerException – Detect, Fix, and Best Practices

URL: https://www.progressiverobot.com/java-lang-nullpointerexception/ java.lang.NullPointerException is one of the most popular [exceptions in java](/community/tutorials/exception-handling-in-java) programming. Anybody working in java must have seen this popping out of nowhere in the java standalone program as well as the [java web application](/community/tutorials/java-web-application-tutorial-for-beginners). java.lang.NullPointerException NullPointerException is a runtime exception, so we don’t need to catch it in the program. NullPointerException is raised in an […]

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
Java Access Modifiers — step-by-step Programming tutorial on Progressive Robot

Java Access Modifiers

URL: https://www.progressiverobot.com/java-access-modifiers/ Java access modifiers are used to provide access control in java. Java provides access control through three keywords – private, protected and public. We are not required to use these access modifiers always, so we have another one namely "default access", "package-private" or "no modifier". Java Access Modifiers ![java access modifiers, protected, private, […]

Read more
JUnit Setup Maven - JUnit 4 and JUnit 5 — step-by-step Programming tutorial on Progressive Robot

JUnit Setup Maven – JUnit 4 and JUnit 5

URL: https://www.progressiverobot.com/junit-setup-maven/ JUnit 4 and JUnit 5 are completely different frameworks. They both serve the same purpose, but the JUnit 5 is a completely different testing framework written from scratch. It's not using anything from JUnit 4 APIs. Here we will look into how to setup JUnit 4 and [JUnit 5](/community/tutorials/junit5-tutorial) in our maven projects. […]

Read more
Java Socket Programming - Socket Server, Client example — step-by-step Programming tutorial on Progressive Robot

Java Socket Programming – Socket Server, Client example

URL: https://www.progressiverobot.com/java-socket-programming-server-client/ Welcome to Java Socket programming example. Every server is a program that runs on a specific system and listens on a specific port. Sockets are bound to the port numbers and when we run any server it just listens on the socket and waits for client requests. For example, tomcat server running on […]

Read more
CHAT