Subscribe
Tutorial search

Java Type Tutorials


Sort by:
Creating a Job Scheduler in Java Struts
Creating a Job Scheduler in Java Struts
This is a detailed tutorial on how to create a full-featured job scheduler in Java Struts. It comes with a simple login form for the two types of users - Manager and Employee, email notifications support, a checkbox list of employees, a date picker and mu
Difficulty:
What is default bean scope in Spring MVC
What is default bean scope in Spring MVC
Apart from standard bean scope like Singleton, prototype, request, session and global Session, there is a new bean scope added in Spring called thread scope, which allows per thread instances like ThreadLocal.
Difficulty:
How to connect Oracle Database to Java
How to connect Oracle Database to Java
Java program to connect to Oracle database from Java program. You can also connect to Oracle by using type 4 driver, just add jdbc_6g.jar and you are ready
Difficulty:
Basic of Java
Basic of Java
Learn about Java Comment, Keyword, Data type, Variables
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:
Learn Programming with Processing
Learn Programming with Processing
Processing is a higher level implementation of Java for visually-based programs and a great way to learn programming for beginners. If you want to create Java applications such as games, visualizations, GUI's, Android apps or similar program types but find Java difficult to learn Processing could be what you are looking for. This in depth documentation includes tutorials, exercises and a full course for those starting out with programming.
Difficulty:
Java TreeMap Tutorial: Master TreeMap with Example
Java TreeMap Tutorial: Master TreeMap with Example
TreeMap in Java is the best solution for Java programs which are looking for sorted datastrucutre. TreeMap in Java sort keys based on either their natural order or any custom order defined by provided comparator while creating TreeMap. If you try to store any element in TreeMap which is not of same type like earlier key you will get ClassCastException because with every new key insertion treeMap sort all the keys.
Difficulty:
How to apply javascripts in android applications
How to apply javascripts in android applications
Android provides a very capable UI component called WebView that can be used to display HTML content. The WebView class is standard on Android and does not require anything special to use. The entry point in the 06_HtmlOnAndroid project is the class HtmlOnAndroid and shows how little code is required to get this type of application set up. Listing 61 shows the onCreate method of HtmlOnAndroid.
Difficulty:
4 ways to convert Double to String in Java Program
4 ways to convert Double to String in Java Program
If you are working in Java , you must be familiar with Double and String. these two are most common data types available in Java, String is used to represent any textual data while Double is used to represent any floating point data in Java Program.Most of the time you need to convert either from String to Double or from Double to String in your program. this article explains multiple ways of doing this conversion in easy and effective manner with code examples and clear explanation.
Difficulty:
Conversion of String to Date in Java code Example
Conversion of String to Date in Java code Example
While working with web application and desktop application many times we come to situation where we need to convert String to date and vice versa. Since Date is an important thing to show in report and String is one of most easy available type no matter whether you are reading from file or network or databases it becomes essential to convert String into Date in Java and sometime Date to string in Java. This article gives you 10 examples of each string to date and date to string and explains concept behind this.
Difficulty:
How to use arraylist in java with example
How to use arraylist in java with example
ArrayList has been modified in Java5 (Tiger) to support Generics which makes Java ArrayList even more powerful because of enhanced type-safety. Before Java5 since there was no generics no type checking at compile time which means there is chance of storing different type of element in an ArrayList which is meant for something and ultimately results in ClassCastException during runtime. with generics you can create Java ArrayList which accepts only type of object specified during creation time and results in compilation error if someone tries to insert any other object into ArrayList in Java; for example if you create an ArrayList of String object you can not store Integer on it because add() method of ArrayList will check Type before adding object into ArrayList in Java opposite to add() method of Java4 which accepts any object.
Difficulty:
10 examples of Enum keyword in Java
10 examples of Enum keyword in Java
Java Enum was introduced in JDK 1.5 and it is one of my favorite features on J2SE 5. Java Enum as type is more suitable on certain cases for example representing state of Order as NEW, PARTIAL FILL, FILL or CLOSED. Enum was not originally available in Java though it was available in other language like C and C++ but eventually Java realized and introduced Enum on JDK 5 (Tiger). In this Java enum tutorial we will see different examples of java enum and how to use Enum in Java. Focus of this java enum tutorial will be on different features provided by Enum in Java and how to use them. If you have used Enum before in C or C++ than you will not be uncomfortable with Java enum but in my opinion Enum in Java is more rich and versatile than in other language.
Difficulty:
How to convert String to Integer to String in Java example
How to convert String to Integer to String in Java example
Converting string to integer and Integer to String is one of the basic tasks of Java and most people learned about it when they learn java programming. Even though string to integer and integer to string conversion is basic stuff but same time its most useful also because of its frequent need given that String and Integer are two most widely used type in all sort of program and you often gets data between any of these format. Few days back I had to convert a binary String into integer number and then I thought about this post to document all the way I know to convert between integer to string and string to integer. Here is my known way of string to integer conversion with example in java:
Difficulty:
Basic Input and Output in Java
Basic Input and Output in Java
A tutorial covering the different methods of accepting user input and outputting data in Java. We look at the various types of input streams and then move on to outputting data to the command line and then how to write files in Java. Suitable for all skill levels.
Difficulty:
Java instanceof operator details
Java instanceof operator details
This tutorial demonstrates how to use the instanceof keyword in Java to test the object type.
Difficulty:
Search Term(s) (1): type