Apr 07, 2011 — 7 comments
Both Application Server and web server are part of J2EE Stack and used to host Java applications. An important difference between application Server and web server is that former supports EJB while later doesn't support EJB. example of various applications servers are Glassfish, Webshhere WAS, Weblogic 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.
Simple Java program which teaches how to reverse Java program by using arithmetic operator in Java. In order to reverse digit of a number you need to use divide and modulas operator.
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.
This article is about how to do logging in Java, how to use log4j and some practical logging tips in Java. this is more a collection of experience, best practices and provides a developers view on java logging. Its critical to use correct logging level, correct format and know which information to log.
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
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.
Java system library has two date classes one is java.sql.Date and other is java.util.Date , why do you have two date classes in java? because sql date mapped with ANSI SQL date object, it also highlight the main difference that sql date can not represent time details
Database transaction is an important concept to understand while working in database and SQL. Transaction in database is required to protect data and keep it consistent when multiple users access the database at same time. In this database transaction tutorial we will learn what is transaction in database, why do you need transaction in database, ACID properties of database transaction and an example of database transaction along with commit and rollback.
Comprehensive Synchronization tutorial in Java. synchronized keyword is used to provide mutual exclusion and visibility guarantee in mufti-threaded environment. In order to use synchronized keyword properly you need to remember which object your code is locking etc.
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?