How to create object using reflection in Java

  • 27 October 2016
  • ADM

How to create an object using reflection in Java. Simple examples for both situations provided: with parameters or without parameters.


GET/POST request with HttpURLConnection in Java

  • 17 October 2016
  • ADM

How to send GET and POST requests using standard HttpURLConnection class from Java. Simple examples for both methods.


How to convert String to double in Java

  • 14 October 2016
  • ADM

How to convert String to double in Java using Double.parseDouble and Double.valueOf methods. Simple example provided.


How to convert String to float in Java

  • 13 October 2016
  • ADM

How to convert String to float in Java using Float.parseFloat and Float.valueOf methods. Simple example provided.


How to convert String to InputStream in Java

  • 14 October 2016
  • ADM

Simple example how to convert a String object InputStream object in Java using ByteArrayInputStream class.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.