Programming

Inheritance in Java Example — step-by-step Programming tutorial on Progressive Robot

Inheritance in Java Example

URL: https://www.progressiverobot.com/inheritance-java-example/ Inheritance in java is one of the core concepts of Object-Oriented Programming. Java Inheritance is used when we have is-a relationship between objects. Inheritance in Java is implemented using extends keyword. Inheritance in Java Inheritance in Java is the method to create a hierarchy between classes by inheriting from other classes. Java Inheritance […]

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

Java 8 Stream – Java Stream

URL: https://www.progressiverobot.com/java-8-stream/ Welcome to Java 8 Stream API tutorial. In the last few java 8 posts, we looked into [Java 8 Interface Changes](/community/tutorials/java-8-interface-changes-static-method-default-method "Java 8 Interface Changes – static methods, default methods, functional Interfaces") and [Functional Interfaces and Lambda Expressions](/community/tutorials/java-8-functional-interfaces "Java 8 Lambda Expressions and Functional Interfaces Example Tutorial"). Today we will look into one […]

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 File Path, Absolute Path and Canonical Path — step-by-step Programming tutorial on Progressive Robot

Java File Path, Absolute Path and Canonical Path

URL: https://www.progressiverobot.com/java-file-path-absolute-canonical/ Today we will look into the Java file path. Java File path can be abstract, absolute or canonical. Java File Path java.io.File contains three methods for determining the file path, we will explore them in this tutorial. getPath(): This file path method returns the abstract pathname as String. If String pathname is used […]

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

Java Project Lombok

URL: https://www.progressiverobot.com/java-project-lombok/ Project Lombok is a very useful tool for java projects to reduce boiler plate code. Problem Statement !java project lombok In Java vs. other language debate, the first knock which you get from other language supporters is that Java requires lot of boiler plate code and you just cannot get over it, and […]

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

Java String

URL: https://www.progressiverobot.com/java-string/ Java String is one of the most widely used class. Java String class is defined in java.lang package. Java String Basically, string is a sequence of characters but it’s not a primitive type. When we create a string in java, it actually creates an object of type String. String is immutable object which […]

Read more
Java Write to File - 4 Ways to Write File in Java — step-by-step Programming tutorial on Progressive Robot

Java Write to File – 4 Ways to Write File in Java

URL: https://www.progressiverobot.com/java-write-to-file/ Java provides several ways to write to file. We can use [FileWriter](/community/tutorials/java-filewriter-example), [BufferedWriter](/community/tutorials/java-bufferedwriter), java 7 [Files](/community/tutorials/java-files-nio-files-class) and [FileOutputStream](/community/tutorials/java-fileoutputstream) to write a file in Java. Java Write to File ![java write to file, write file in java](images/java-write-to-file-section-1.png) Let's have a brief look at four options we have for java write to file operation. FileWriter: […]

Read more
CHAT