Apr 07, 2011 — 3 comments
This introductory tutorial from Sun will provide an interview to programming in Java. It includes an overview of the language and environment, a simple "Hello World" lesson, and sample code for Windows, Linux, and OS X used in the creation of "Hello World".
An excellent tutorial for beginners that teaches how to create a class that has constructors, methods and a toString. It also teaches some of the very basics of Java and object-oriented programming in the process. Then it walks through the process of building an application. The end result of this tutorial is a fraction calculator that can add, subtract, multiply and divide fractions and reduce them to simplest form.
This tutorial gives users a starting point with Java Programming and helps them understand the software they will require. It also shows users how to write a simple program and the basic structure of Java code
Learn how to build your first GUI program using Java. It uses Swing framework, but since its for the beginners, fits well in the Java Basics category.
A resource is a file situated somewhere in the class path. It can be a file in a package folder, in the classes folder or in a jar file. Resources are usually needed at runtime and they can be properties files, images and so on. The ClassLoader and Class classes provide methods to find the desired resources but a little bit of attention has to be payed to the quirks of this API.
Helps beginners understand how Variables can benefit a program and different data types available in the language.
One more nice touch in the Java 6 offensive to the desktop is giving Java applications the ability to add icons to the system tray in a pretty consistent way across platforms. Of course differences exist and they will show up to some degree in the code but at least now the framework exists and the programmer’s effort is a lot smaller.
This is one of the most popular interview question on String in Java which starts with discussion of What is immutable object , what are the benefits of immutable object , why do you use it and which scenarios do you use it. It can also come once interviewee answers some preliminarily strings questions e.g. What is String pool , What is the difference between String and StringBuffer , What is the difference between StringBuffer and StringBuilder etc.
Its common requirement of a java web application to convert string to date , you can get string from xml document or any file or from database but when you want to show that string in front of user you want to show them as date and for that you need to format in a particular dateformat. This article explains some best ways to convert string to date and date to string on vearious date format e.g. ddMMyyyy or dd-MM-yyyy with simple examples.
This tutorial will give you a nice understanding to using argument with methods in java. If you're new to OOP then this will help you out.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?