Subscribe
Tutorial search

Java Tutorials


We hope that you will enjoy our Java tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own Java tutorial to our site. Thank you !

Sort by:
Difference between ConcurrentHashMap and Hashtable in Java
Difference between ConcurrentHashMap and Hashtable in Java
ConcurrentHashMap is indeed best choice in case of multithreaded environment if numbers of reader is much greater than number of writer to avoid contention and to increase throughput and performance but deciding between SynchronizedHashMap and ConcurrentHashMap in Java is still requires understanding of use cases and actual environment.
Difficulty:
How to read properties file in Java with example
How to read properties file in Java with example
Quick java tutorial to load xml properties file and read values form them.properties file in java is great way to provide configuration to java program like database connection settings while connecting from JDBC, JMS messaging settings etc. this article explains quick way of loading and reading properties file in java written in xml format.
Difficulty:
How to improve performance of Java database applications
How to improve performance of Java database applications
Java tutorial of quick practical tips to improve performance of Java application which has database in back end. database is main source of slowness and by minimizing database calls, improving query performance by introducing indexes, using preparedStatement you can improve performance of Java application.
Difficulty:
What is Assertion in Java with Example
What is Assertion in Java with Example
Java tutorial on what is assertion in java and why should you use assertion to improve code quality. Also Assertion in java is fairly underused feature but if used carefully can complement both Unit Testing and Exception handling. Since Assertion sits on code its gets more expose than unit testing and can test your function with more real data than one or two test data.
Difficulty:
How to find memory usage inside JVM
How to find memory usage inside JVM
Java tutorial on how to find memory usage in java with example. step by step guide to get free memory, max memory and total memory from JVM by using various utility method provided in Runtime class. accuracy of those method are also discussed in order to avoid misinterpretation of result.
Difficulty:
Scala - REPL, vars, vals and functions
Scala - REPL, vars, vals and functions
In my previous article we installed Scala and the Scala IDE plugin for eclipse. Here we'll explore Scala's interactive shell, the difference between vals and vars and when the use them and how functions are structured, including a couple of exceptions to the rule.
Difficulty:
how to reverse string in using recursion in Java
how to reverse string in using recursion in Java
This is also a very popular java interview questions mostly asked as how to reverse string in Java without using Stringbuffer reverse but There are many different ways to solve this problem using recursion and in this article we discuss one of those way to reverse string in Java.
Difficulty:
Difference between Class, member and local variable in Java
Difference between Class, member and local variable in Java
Java provides different kinds of variable e.g. Class variable or Static variable, Instance variable or non static variable, Local variable. In this article we will see some difference between Class variable also called static variable and Instance variable also called non static variable in Java. indivine index
Difficulty:
How to compare Dates in Java with 3 Examples
How to compare Dates in Java with 3 Examples
Java provides multiple ways to compare two Dates in Java. here we will see 3 simple example to convert two dates in Java and find out whether one date is before, after or in between two dates.
Difficulty:
How to use blocking method in Java
How to use blocking method in Java
Java API has several blocking methods in IO, Swing and Threading which can hung the program if not used properly. its quick guide on blocking method in java.
Difficulty:
Why wait and notify method is in Object Class
Why wait and notify method is in Object Class
Its bee a classic Java interview questions from long time "Why wait and notify methods are in Object Class in Java" here are few reasons which make sense.
Difficulty:
Darmowe bramka sms
Darmowe bramka sms
SMS na telefon od pc narzędzie wysyła sms do kilku sieci komórkowych bez konieczności dodatkowego wsparcia modem.
Difficulty:
How to convert String to Enum in Java
How to convert String to Enum in Java
Quick Java tutorial on how to convert Enum to String and String to Enum in Java.
Difficulty:
How to create hidden file in Java using JDK7 new File API
How to create hidden file in Java using JDK7 new File API
quick tip to make any file hidden in Java or create new hidden files in Unix and windows environment. Java File API doesn't provide any direct way of doing this prior to JDK 7 and you need to workaround this by executing DOS command in windows and having do(.) in start of file name in Unix. from JDK7 onwards you can set attribute hidden as true.
Difficulty:
Difference between Checked and UnChecked Exception Java
Difference between Checked and UnChecked Exception Java
Checked and unchecked Exception are two different types of Exception in java. both are similar in functionality and you can do all things with checked exception which are possible with unchecked exception. though there are some subtle differences like for unchecked exception you don't need to add explicit try catch block which pollute code in case of checked Exception.
Difficulty:
Total Tutorials in Category: 1099