Get and Set Field Value using Reflection in Java

  • 31 October 2016
  • ADM

How to get and set field value using reflection in Java. The tutorial covers all situations for a field: public, private and protected.


How to execute method using reflection in Java

  • 28 October 2016
  • ADM

How to execute method using reflection in Java. Example with all cases, with/without parameters and returning/no returning a value.


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.


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.


How to create XML file in Java using DOM

  • 11 July 2016
  • ADM

How to create XML file in Java using DOM. Simple example with pretty printing to output the content to console or to a file.