Programming

Handling Errors in Go — step-by-step Programming tutorial on Progressive Robot

Handling Errors in Go

Robust code needs to react correctly to unexpected circumstances like bad user input, faulty network connections, and failing disks. Error handling is the process of identifying when your program is in an unexpected state, and taking steps to record diagnostic information for later debugging.

Read more
Java 8 Interface Changes - static method, default method — step-by-step Programming tutorial on Progressive Robot

Java 8 Interface Changes – static method, default method

URL: https://www.progressiverobot.com/java-8-interface-changes-static-method-default-method/ Java 8 interface changes include static methods and default methods in interfaces. Prior to Java 8, we could have only method declarations in the interfaces. But from Java 8, we can have default methods and static methods in the interfaces. Java 8 Interface ![java 8 interface changes, java 8 interface, java interface static […]

Read more
Java Catch Multiple Exceptions, Rethrow Exception — step-by-step Programming tutorial on Progressive Robot

Java Catch Multiple Exceptions, Rethrow Exception

URL: https://www.progressiverobot.com/java-catch-multiple-exceptions-rethrow-exception/ In Java 7, catch block has been improved to handle multiple exceptions in a single catch block. If you are catching multiple exceptions and they have similar code, then using this feature will reduce code duplication. Let's understand java catch multiple exceptions feature with an example. Java catch multiple exceptions ![java catch multiple […]

Read more
Java Convert String to XML Document and XML Document to String — step-by-step Programming tutorial on Progressive Robot

Java Convert String to XML Document and XML Document to String

URL: https://www.progressiverobot.com/java-convert-string-to-xml-document-and-xml-document-to-string/ Sometimes while programming in java, we get String which is actually an XML and to process it, we need to convert it to XML Document (org.w3c.dom.Document). Also for debugging purpose or to send to some other function, we might need to convert Document object to String. Here I am providing two utility functions. […]

Read more
Java SE 8 Interview Questions and Answers (Part-1) — step-by-step Programming tutorial on Progressive Robot

Java SE 8 Interview Questions and Answers (Part-1)

URL: https://www.progressiverobot.com/javase8-interview-questions-part1/ In this post, we are going to discuss some important [Java SE 8](/community/tutorials/java-8-features-with-examples) Interview Questions with Answers. I will write one more post to discuss the remaining Java SE 8 Interview Questions. Java 8 Interview Questions Why do we need change to Java again? Java SE 8 New Features? Advantages of Java SE […]

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
Linear Search Algorithm and Implementation in C — step-by-step Programming tutorial on Progressive Robot

Linear Search Algorithm and Implementation in C

URL: https://www.progressiverobot.com/linear-search-algorithm-c/ Linear Search is basically a sequential search algorithm. In this algorithm, the key element is searched in the given input [array](/community/tutorials/arrays-in-c) in sequential order. If the key element is found in the input array, it returns the element. Linear Search Algorithm Linear_Search ( Array X, Value i) Set j to 1 If j […]

Read more
eclipse.ini vm arguments - eclipse.ini File Location Mac, Windows — step-by-step Programming tutorial on Progressive Robot

eclipse.ini vm arguments – eclipse.ini File Location Mac, Windows

eclipse.ini is the configuration file used to control the Eclipse startup. We can configure Eclipse VM arguments such as JDK to be used (eclipse.ini vm), permgen space, maximum and minimum heap size using Xms, Xmx parameters. eclipe.ini File Location For windows, it's in the same directory as eclipse.exe file, as shown in below image. ![eclipse.ini […]

Read more
Height of Binary Tree in C/C++ — step-by-step Programming tutorial on Progressive Robot

Height of Binary Tree in C/C++

The height of a Binary Tree is defined as the maximum depth of any leaf node from the root node. That is, it is the length of the longest path from the root node to any leaf node. Let us consider the below Binary Tree. Since the leaf nodes corresponding to the maximum depth are […]

Read more
CHAT