Java

Mockito mock examples — step-by-step Programming tutorial on Progressive Robot

Mockito mock examples

URL: https://www.progressiverobot.com/mockito-mock-examples/ Mockito mocking framework provides different ways to mock a class. Let's look at different methods through which we can mock a class and stub its behaviors. Mockito mock method We can use [Mockito](/community/tutorials/mockito-tutorial) class mock() method to create a mock object of a given class or interface. This is the simplest way to […]

Read more
Log4j2 Example Tutorial - Configuration, Levels, Appenders — step-by-step Programming tutorial on Progressive Robot

Log4j2 Example Tutorial – Configuration, Levels, Appenders

URL: https://www.progressiverobot.com/log4j2-example-tutorial-configuration-levels-appenders/ Welcome to the Apache Log4j2 Example Tutorial. If you ask an expert developer about the most annoying thing about an application, the answer might be related to logging. If there is no suitable logging in an application, maintenance will be a nightmare. Most of the application go through Development testing, unit testing, integration testing. But […]

Read more
Java 12 Features — step-by-step Programming tutorial on Progressive Robot

Java 12 Features

URL: https://www.progressiverobot.com/java-12-features/ Finally, JDK 12 which is a part of the six-month release cycle, is here. It comes after the last Java LTS version 11. We had discussed at length on [Java 11 features](/community/tutorials/java-11-features) before. Today we'll be discussing Java 12 features and see what it has in store for developers. Java 12 was launched […]

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

Java Annotations

URL: https://www.progressiverobot.com/java-annotations/ Java Annotations provides information about the code. Java annotations have no direct effect on the code they annotate. In java annotations tutorial, we will look into the following; Built-in Java annotations How to write Custom Annotation Annotations usage and how to parse annotations using [Reflection API](/community/tutorials/java-reflection-example-tutorial). Java Annotations ![java annotations, annotations in java, […]

Read more
Longest Palindrome Substring in a String in Java — step-by-step Programming tutorial on Progressive Robot

Longest Palindrome Substring in a String in Java

URL: https://www.progressiverobot.com/longest-palindrome-substring-string-java/ Longest palindrome substring in a string is a very common [java interview question](/community/tutorials/java-interview-questions). To find out the longest palindrome in [String](/community/tutorials/java-string), first of all, we need to identify the logic to do it. Longest Palindrome Substring in a String Algorithm The key point here is that from the mid of any palindrome string […]

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
How To Install Solr 5.2.1 on Ubuntu 14.04 — step-by-step Linux tutorial on Progressive Robot

How To Install Solr 5.2.1 on Ubuntu 14.04

Solr is a search engine platform based on Apache Lucene. It is written in Java and uses the Lucene library to implement indexing. It can be accessed using a variety of REST APIs, including XML and JSON. In this article, we will install Solr using its binary distribution.

Read more
CHAT