Java Basics Tutorials
Java
basics
tutorials
Having in mind portability and simplicity Sun Microsystems created "Write once, run anywhere" (WORA) slogan to illustrate the cross-platform benefits of the Java programming language.
Basic
- How to get CPU cores in Java
- If statement vs try catch block
- How to parse Google Search result in Java
- Luhn algorithm implementation in Java
- Split URL into components using regex
- Java Exceptions handling
- How to convert String to int in Java
- How to convert String to long in Java
- Autoboxing and Unboxing in Java
- Display double in 2 decimal points in Java
- How to convert String to float in Java
- How to convert String to double in Java
- How to convert Byte array to String in Java
- How to convert Char Array to String in Java
- How to convert Char to String in Java
- How to get input from Java Console
- How to sort objects with Comparable and Comparator in Java
- Java 8 forEach examples
- Enum examples in Java
- How to sort TreeMap in descending order in Java
- 6 methods how to loop a Map in Java
- Java 8 Streams filter examples
- How to generate a random password in Java
- How to generate random numbers in a range using Java
- How to clone an object in Java
- How to deep clone an object in Java
- How to convert Fahrenheit to Celsius in Java
- How to convert Celsius to Fahrenheit in Java
- How to Check Alexa Rank in Java
- How to convert a roman number in decimal in Java
- How to split a string in Java
- How to generate UUID / GUID in Java
- How to execute shell command from Java
- How to check the JDK version of a class file
Date
- How to get date and time in Java
- How to format XMLGregorianCalendar
- How to compare dates in Java
- How to calculate date/time difference in Java
JSON
- How to read and write JSON with json-simple
- How to convert object to / from JSON using Gson
- How to convert object to / from JSON using Jackson
XML
- How to create XML file in Java using DOM
- How to read XML file in Java using DOM
- How to convert properties file into XML file in Java
- How to convert XML file into properties data in Java
- JAXB Hello World Marshalling / Unmarshalling Example
- How to generate JAXB classes with xjc
- How to marshal a JAXB object into org.w3c.dom.Document
- How to read XML file in Java using SAX Parser
Reflection
- How to create object using reflection in Java
- How to execute method using reflection in Java
- Get and Set Field Value using Reflection in Java
- Java Custom Annotations Example
Log4j
Keywords
References