Final Keyword in Java

In this tutorial, we will learn about Final Keyword in Java. In java Final keyword is used in different ways. Final is not an access-modifier. Final keyword can be applied to a variable, a method and a class. Final keyword and its usages: Let’s learn about Final keyword in detail with an example. Final variable: If a variable is prefixed with final keyword, then the variable becomes a constant whose value cannot be changed. Hence when a constant needs to be created, prefix final keyword with the variable. Generally final…

Read More

What is JAXB ?

In this tutorial, we will learn What is JAXB ?  JAXB is Java Architecture for XML Binding. It is a standard way to bind XML schemas and Java representations to incorporate XML data and processing functions in Java applications. JAXB is an API for reading and writing Java objects to and from XML documents. JAXB provides methods for Marshalling java objects into XML and Unmarshalling an XML into its original java object. JAXB provides annotations to implement marshalling and unmarshalling. Some of the annotations in JAXB are: Some of the Annotations in…

Read More