Java

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

Enum in Java

URL: https://www.progressiverobot.com/java-enum/ Enum was introduced in Java 1.5 as a new type whose fields consists of a fixed set of constants. For example, we can create directions as Java Enum with fixed fields as EAST, WEST, NORTH, and SOUTH. Java Enum !java enum, enums in java In this tutorial, we will learn know how to […]

Read more
Java Inner Class — step-by-step Programming tutorial on Progressive Robot

Java Inner Class

URL: https://www.progressiverobot.com/java-inner-class/ Java inner class is defined inside the body of another class. Java inner class can be declared private, public, protected, or with default access whereas an outer class can have only public or default access. Java Nested classes are divided into two types. ### static nested class If the nested class is static, […]

Read more
How to open a File in Java — step-by-step Programming tutorial on Progressive Robot

How to open a File in Java

URL: https://www.progressiverobot.com/java-open-file/ Sometimes we have to open a file in java program. java.awt.Desktop can be used to open a file in java. Desktop implementation is platform dependent, so first, we should check if the operating system supports Desktop or not. This class looks for the associated application registered to the current platform to open a […]

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

Java SAX Parser Example

URL: https://www.progressiverobot.com/java-sax-parser-example/ SAX Parser in java provides API to parse XML documents. SAX parser is different from [DOM parser](/community/tutorials/read-xml-file-java-dom-parser "How to read an XML File in Java (DOM Parser)") because it doesn't load complete XML into memory and read xml document sequentially. SAX Parser ![sax parser, sax parser example, java sax parser](images/java-sax-parser-example-section-1.png) javax.xml.parsers.SAXParser provides method […]

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
JSP Example Tutorial for Beginners — step-by-step Programming tutorial on Progressive Robot

JSP Example Tutorial for Beginners

URL: https://www.progressiverobot.com/jsp-example-tutorial-for-beginners/ Welcome to the JSP Example Tutorial for Beginners. In last few posts, a wrote a lot about Java Servlet and got very good response from our readers. So I have started another series on JSP tutorials and this is the first post of the series. JSP Example Tutorial ![jsp example, jsp tutorial, jsp […]

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

Mediator Design Pattern in Java

URL: https://www.progressiverobot.com/mediator-design-pattern-java/ Mediator design pattern is one of the behavioral design pattern, so it deals with the behaviors of objects. Mediator design pattern is used to provide a centralized communication medium between different objects in a system. Mediator Design Pattern ![mediator pattern, mediator design pattern, mediator pattern java](images/mediator-design-pattern-java-section-1.png) According to GoF, mediator pattern intent is: […]

Read more
50 Servlet Interview Questions and Answers — step-by-step Programming tutorial on Progressive Robot

50 Servlet Interview Questions and Answers

URL: https://www.progressiverobot.com/servlet-interview-questions-and-answers/ Servlets is a very important topic of Java EE and all of the web applications frameworks such as Spring and Struts is built on top of it. This makes servlet interview questions a hot topic in interviews. Here I am providing a list of 50 servlet interview questions with answers to help you […]

Read more
CHAT