How to send HTTP request GET/POST in Java? How to use java.net.URLConnection to fire and handle HTTP? Below is a simple example to get Response from URL in Java Program. The URLConnection class contains many methods that let you …
How to Run a Program forever in Java? Keep running Main() Thread Continuously
Java is pretty amazing. With list of thousands of APIs and utilities you could create any types of tutorials. Today I had a scenario in which I needed to have my program running forever. Wanted to check upstart script in Ubuntu OS. I could …
Read Article about How to Run a Program forever in Java? Keep running Main() Thread Continuously →
Mastering Memory Management in Java: A Deep Dive into JVM Heap Utilization
Although Java provides automatic garbage collection, sometimes you will want to know how large the object heap is and how much of it is left. You can use this information, for example, to check your code for efficiency or to approximate how many more …
Read Article about Mastering Memory Management in Java: A Deep Dive into JVM Heap Utilization →
Understanding Java Annotations – Java @annotations Tutorial
How and where are Annotations used in Java? An annotation, in the Java computer programming language, is a special form of syntactic metadata that can be added to Java source code. Classes, methods, variables, parameters and packages may be …
Read Article about Understanding Java Annotations – Java @annotations Tutorial →
Best Google Fonts for WordPress Blog
In Java How to get distinct characters with their count in a String?
In this tutorial we will go over how to get distinct characters with their count in a String? We will use 3 strings: This program will iterate over all characters and counts the number of times character appears. Here is a complete …
Read Article about In Java How to get distinct characters with their count in a String? →
In Java How to Replace/Remove Characters from String?
How to remove/replace character in a String in Java? The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class. You are at right place if you have below …
Read Article about In Java How to Replace/Remove Characters from String? →