Why It is Important To Focus On Java Exceptions For Your Programs

Why It is Important To Focus On Java Exceptions For Your Programs If you work with Java, it is important to understand exceptions. Exceptions are uncanny situations that can destroy the normal behavior of a program. They are common in the Java programming language, and it is something you will have to deal with if you want to write good applications. Exceptions are defined as unchecked or checked, and they are also defined as being objects. Exceptions which are checked will stretch java.lang.Exception, and they will need to be controlled… Read More

Important Features of Java – Multithreading, AWT

Important Features of Java – Multithreading, AWT In this tutorial you will learn about Important Features of Java – Multithreading, AWT and Event Handling, Networking, Socket and Database Connection There are many features of Java. Some of them namely are explained below. Multithreading A fundamental concept of computer programming is the idea of handling more than one task at a time. Within a program these separately running pieces are called threads and the general concept is called multithreading. The Java Virtual Machine allows an application to have multiple threads of… Read More

What You Should Know About Java XML

What You Should Know About Java XML XML is a format that has become an important part of information technology. In addition to this, the combination of Java and XML have become very important for those who work with back end business components. Combining Java with XML has allowed developers to save a large amount of time and energy in the creation of new programs. If this technology is used correctly it will make your applications more flexible and ready for change. Another thing that you will want to become… Read More

What You Can Do To Deal With Java’s Memory Retention Problems

What You Can Do To Deal With Java’s Memory Retention Problems When you work with the Java programming language, a feature that you will want to be familiar with is called finalization. Finalization will allow you to conduct a cleanup on objects that the garbage collector is not capable of reaching. Finalization will generally be used to recapture resources which are connected to an object. Below is an example of a basic finalization: public class Image1 { // pointer to the native image data private int nativeImg; private Point pos;… Read More

Java Overview

Java Overview Java is a programming language that is object oriented. It was created in the 1990s by James Gosling, who worked with Sun Microsystems. While most programming languages are designed to be compiled in to basic code, Java is designed to be compiled to bytecode. This bytecode can then be processed by the Java Virtual Machine. A lot of the code that Java uses is taken from programming languages such as C++. However, Java uses an approach which is much more simple than C++ or C. The creators of… Read More

How To Use Java DB as Your Client Mobile Database

How To Use Java DB as Your Client Mobile Database A database which is embedded in a Java application can be an excellent idea which has a lot of potential. It is currently possible to use it for a client portable database in both browser and desktop programs. In addition to this, it could also be used as a backup database if your network database is not working. The purpose of a network database should be to hold a large amount of data related to businesses or other information. Of… Read More

How To Run J2ME Programs on Palm Devices

How To Run J2ME Programs on Palm Devices Palm products are very popular mobile communication tools which have a large number of properties. Because of the properties that these devices have, they have been combined with programs such as Java. Products such as the Palm Treo are being used to run a number of Java MIDP programs. Runtime support is provided, and it will allow these systems to work together. It is possible to combine your J2ME programs with the Palm operating system by using WEME. To do this, you… Read More

Java Virtual Machine

Java Virtual Machine The Java Virtual Machine, also known as JVM, was created by Sun Microsystems, and is basically a virtual machine which runs Java bytecode. The Java bytecode will be created by Java compilers. However, it should be noted that compilers for other languages have also been used as well. The JVM is an important part of Java. The existence of JVMs on numerous different devices and software programs has allowed programs written in Java to be run on a large number of devices. You can write a single… Read More

Quickly Develop Java Programs With Tapestry

How To Quickly Develop Java Programs With Tapestry As you work with J2EE, you will find that there are a large number of programs which have been designed to make it easier to work with. If you are a programmer, the last thing you should want to concern yourself with is basic low level programming work. If you are like many programmers, you probably want do deal with issues that are related to business. One example of a program that can help you is called the Model View Controller, or… Read More

A Java TOC2 Class Which Can Contact Aim

How To Produce a Java TOC2 Class Which Can Contact Aim AOL Instant Messenger is one of the most popular instant messenging tools available today. It allows you to send instant messages to other people who use AIM. At the same time, it is possible to heavily customize AIM programs by using a protocol which is named TOC2. AOL has released an API that people can use to connect to it. In this article I will teach you a method for designing your own chat program using TOC2. There are… Read More

How To Perform Class Loading With Java

How To Perform Class Loading With Java The class loading system for Java is both flexible and strong. It will allow your programs to gains access to class databases without having to link to "include" files which are static. It will load archive files which contain these classes and other tools from specific locations. An example of these locations would be directories. It can also gain resources from locations which have been defined with the CLASSPATH variable. The system can deal with issues which are related to classes and other… Read More

How To Develop RFID Applications In Java

How To Develop RFID Applications In Java Radio Frequency Identification, also known as RFID, is a tool which is being used in a large number of industries. There are a number of software programs which can work with RFID, and an example of this is RFID Anywhere by Sybase iAnywhere. It was designed using a .NET program that has greatly modified the different phases of their RFID projects. Doing this greatly improved the efficiency of their products. RFID Anywhere is a program which can handle the interfaces of printers or… Read More

Determine the Effectiveness of your Java Software

Determine the Effectiveness of your Java Software How To Determine The Effectiveness of Your Java Software During Development ? Trying to use a precise product simulation to test your Java software can be a very expensive process. There are a number of tools available on the market which can run automated tests, and they will allow you to test the efficiency of your application. Many teams fail to address performance issues during development, and this can cause the Java application to crash on the initial tests. If programmers can effectively… Read More

How To Create High Quality Tables With JavaScript

How To Create High Quality Tables With JavaScript If you are web program developer, it is likely that you are creating tables on a daily basis. In this article I will show you how to create high quality tables with Javascript within a short period of time. One feature that you will want to become familiar with is DisplayTag Library. There are a number of things that you will want your tables to have, and some of these are various row colors, menu navigation, column sorting, Export to XML or… Read More

How To Create a Java Server Application

How To Create a Java Server Application The invention of the internet and web browsers has had a massive impact on the way people send and receive information. If you are like many people, you probably get your news and other important information from the internet. However, there are some limits to what web browsers can do. Because they are dependent on HTTP, they are heavily limited in their capabilities. Those who work with web applications on a daily basis are well aware of the many problems web browsers have… Read More

How Code Reviews and PMD Can Crush Bugs In Your Code

How Code Reviews and PMD Can Crush Bugs In Your Code The ability to review your code is one of the best methods to find bugs and other issues which can cause your program to perform poorly. In fact, one of the hardest things about writing a program is debugging it. When programmers get together and share their knowledge, it can help improve the overall quality of your Java applications. In addition to this, it will also increase the skill of programmers who choose to participate. With a code review,… Read More

How a Profiler Can Improve Your Java Applications

How a Profiler Can Improve Your Java Applications If you have been working with C++ programs for longer than five years, you should be well aware of the difficulties involved with debugging software. However, many younger programmers don’t have experience with these issues because Java deals with memory problems by using what is called the garbage collector. Whenever a new object is created in Java, the Java Virtual Machine will reserve memory for it, and if the object reference disappears, the memory will be reclaimed. Because of this simple tool,… Read More

Antipatterns In Java Programs

Antipatterns In Java Programs An antipattern can be defined as a bad design in the Java language. Antipatterns will bring forth bad answers in a way that is easy for some people to understand. If you are programming with Java, it is important to understand both antipatterns and patterns. When you work with software programs, they will need to be maintained. After you have created and released a program, you will need to make sure it is maintained. The skill of the programmer will determine if the design of the… Read More

JSP Basics

JSP Basics Java Server Pages (JSP) is a Java API in J2EE which allows dynamic creation of web pages using Java. It has the same purpose as other existing technologies like CGI or PHP. In this tutorial you will learn about Lifecycle of JSP pages, Dynamic content generation, Invoking Java code using JSP scripting elements, JavaBeans for JSP and Error Handling. The main difference between servlets and JSPs is that servlets are Java classes and JSPs are not (they are embedded in HTML pages). This difference also specifies where you… Read More

Servlets Advanced

Servlets Advanced After describing some basic programming of servlets, we will describe some advanced topics of servlets in this tutorial, viz., Session Tracking, Servlet Filters, Servlet Life Cycle Events, Including, forwarding and redirecting, Servlet Chaining and Applet Servlet Communication. Session Tracking HTTP is a stateless protocol which means that each request done using HTTP is independent from each other. This is a restriction in HTTP since some applications like e-commerce sites require to hold state information. One of the traditional examples of state is a shopping cart. In this tutorial,… Read More

Servlet Basics

Servlet Basics Servlets are Java programs running on a web server that produce results viewed remotely on a web server. Servlets has the same purpose that CGI or PHP had in the past. We shall describe how Servlets works with some examples. You will also learn about Servlet Request and Response Model, Servlet Life Cycle, Servlet Scope Objects and Error Handling. Servlet Request and Response Model Note that although there are two types of servlets (GenericServlet and HttpServlet), we will discuss here only HttpServlet since GenericServlet can be used for… Read More

J2EE Overview

J2EE Overview J2EE is a technology that aims to simplify the design and implementation of enterprise applications. In this tutorial you will learn what J2EE is, its benefits, J2EE main components, Evolution of Enterprise Application Frameworks, Why use J2EE, J2EE Platform Architecture, J2EE APIs and Technologies and J2EE Reference Implementation. Before continuing our J2EE discussion lets define what an enterprise application is. Enterprise application is an application which probably has legacy existing applications and databases that you want to continue using them while adding or migrating to a new set… Read More

Keep it Simple And Secure with Java

Keep it Simple And Secure with Java This article goes into details of how Java as a development technology can help developers to keep their applications simple and secure. Simple mean all way – it should be simple to code, modify, maintain, fix and deliver. Also we are going to cover security aspects of Java technology. Simple to Develop So let us first analyze how can we make it simple to develop applications, integrate them, modify them, maintain them and deliver them with ease. Some people have misunderstanding that Java… Read More

Performance Tuning of Java Applications

Performance Tuning of Java Applications Ever since the first version of Java Technology hit the streets, performance has been an important issue for Java developers. Java has improved dramatically and continually but, performance tuning is very essential to get the best results, especially when we think of J2EE applications. Introduction: Java Performance Tuning (abbreviated as JPT), 2nd edition provides a comprehensive guide to eliminate all the types of performance problems. By considering real-life examples JPT shows how to get rid off all the types of performances problems. For example JPT… Read More

New Features in Java 5 – From Programmers Point of View

New Features in Java 5 – From Programmer’s Point of View With emergence of Java 5, a set of new features is included in Java technology. Many programmers working on Java technology were excited before its release about its new features. In this article, new features of Java 5 are summarized which are important from programmer’s point of view. Language Features Get Rid of ClassCastException With Generics It is very common experience among programmers to face ClassCastException at run time while integrating different parts (modules) of application which are interacting… Read More

New Features In Java 5.0 – From Managers Point of View

New Features In Java 5.0 – From Managers Point of View The much awaited Java 5 has been launched in recent past by Sun. People who are in IT or related to IT industry were interested about its consequences on many factors. People who are developing applications using Java as a developing technology were more interested in new language features and other technological enhancements. But others for whom it is important to manage such process from higher level were more interested in things that are going to change with Java… Read More

Java for Stand-Alone Applications

Java For Stand-Alone Applications Java programming language was primarily developed to deal with embedded applications. But with the introduction of Swing and other user interface utilities to Java, it made its mark in desktop applications too. Now the trend is to use Java technology in developing large web and enterprise applications. Java is more focused on web then desktop applications. But, in this article, we are going to discuss how useful Java is as a development technology for stand alone desktop application development in present scenario. Java is Suitable for… Read More

Is Ejb really significant in enterprise applications?

Is Ejb really significant in enterprise applications? Ejb was introduced to Java technology to attain some features inherent in enterprise applications. Those features include instance pooling, inbuilt security, declarative transactions, container managed persistence, relationship of business objects and caching etc. Now that many people have built their applications using Ejb, let us go back and analyze if Ejb as a technology is really significant in developing enterprise applications. We are going to analyze both pros and cons of Ejb based on experience of people who have used Ejb. Not Always… Read More

Future of Java Technology

Future of Java Technology When Java was developed initially as OAK even its developers were not sure in which direction the technology will grow. And actually Java has taken an unexpected turn around as a development technology. It started its journey with embedded applications but people found it somewhat slow when compare to C++. Java made foray into web in the form of applets and ruled the world for sometime. But then came enterprise era with crusade of .NET and J2EE. In this article let us examine possible directions where… Read More

.NET and J2EE – A Comparsion Study

.NET and J2EE – A Comparsion Study This tutorial compares .NET and J2EE, discussing various features of both the technolgoies and summarising when and where these technologies are suitable to use for entriprise application.   Competitive or Complementary? Introduction With the introduction of .NET technology Microsoft was focused to enjoy monopoly in market of development of enterprise applications. But later on J2EE even though being an open source technology fought back and made sure that most of enterprise applications are developed over the top of J2EE framework. In this article… Read More

How to Install and Use NetBeans for Java Development

How to Install and Use NetBeans for Java Development In this guide, I will try to explain you how you can run examples for J2EE tutorials. There are many ways you can do this, here we will be using the examples in NetBeans IDE which is one of the most powerful open source Java integrated development environments available. The main reason for not selecting another open source IDE like Eclipse is that newest version of NetBeans has built-in free J2EE support. This allows the new users to be able to… Read More