Search Results
Post Author Forum Replies Views Posted [asc]
  Thread: Database Connection Pooling in Tomcat using Eclipse
Post: Database Connection Pooling in Tomcat using Eclips...

Database Connection Pooling is a great technique used by lot of application servers to optimize the performance. Database Connection creation is a costly task thus it impacts the performance of applic...
tutorials4u JAVA 0 86,329 02-13-2011, 03:32 PM
  Thread: Setting Tomcat Heap Size (JVM Heap) in Eclipse
Post: Setting Tomcat Heap Size (JVM Heap) in Eclipse

Recently while running Tomcat under Eclipse for one of the web application I was getting Java Heap memory related error java.lang.OutOfMemoryError. What needs to be done here basically is to increase ...
tutorials4u JAVA 0 34,166 02-13-2011, 03:24 PM
  Thread: Eclipse Tip: Add your own Code Template in Eclipse
Post: Eclipse Tip: Add your own Code Template in Eclipse

If you are using Eclipse as your primary development IDE, then you may want to know about Code templates in Eclipse. Code templates are certain user defined (some are available by default) templates w...
tutorials4u JAVA 0 29,830 02-13-2011, 03:22 PM
  Thread: Eclipse: Workspace in use or cannot be created Error
Post: Eclipse: Workspace in use or cannot be created Err...

Lot of time when I am working in Eclipse, it get crashed due to some or the other reasons. Most of the time this is because I have opened a lot of applications that I am working on and this takes a bi...
tutorials4u JAVA 0 30,015 02-13-2011, 03:18 PM
  Thread: Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View
Post: Eclipse Tip: Hide Closed Projects in Eclipse Proje...

Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already. Imagine your Eclipse workspace is filled with many projects that you created in p...
tutorials4u JAVA 0 30,751 02-13-2011, 03:16 PM
  Thread: 20 very useful Eclipse IDE Shortcuts for Developers
Post: 20 very useful Eclipse IDE Shortcuts for Developer...

Eclipse have been my favorite Java IDE since I started coding in Java. Shortcuts makes life very easy when you are working with any IDE. Eclipse also comes with lot of shortcuts that makes like of a d...
tutorials4u JAVA 0 30,107 02-13-2011, 03:13 PM
  Thread: Inspect your code in Eclipse using Eclipse Scrapbook feature
Post: Inspect your code in Eclipse using Eclipse Scrapbo...

The java IDEs (eclipse, IRAD etc) contribute a scrapbook facility that can be used to try and evaluate Java expressions (such as code snippets). Java scrapbook errors are shown in the editor. Snippets...
tutorials4u JAVA 0 29,700 02-13-2011, 03:09 PM
  Thread: Static Import in Java: New way to Import things in Java
Post: Static Import in Java: New way to Import things in...

Static Import is a new feature added in Java 5 specification. Java 5 has been around the corner for some time now, still lot of people who are new in Java world doesn’t know about this feature. Altho...
tutorials4u JAVA 0 29,651 02-13-2011, 03:06 PM
  Thread: Java: Convert Exponential form to Decimal number format in Java
Post: Java: Convert Exponential form to Decimal number f...

While working with Doubles and Long numbers in Java you will see that most of the value are displayed in Exponential form. For Example: In following we are multiplying 2.35 with 10000 and the result ...
tutorials4u JAVA 0 30,279 02-13-2011, 03:04 PM
  Thread: Null-safe Type in Java 7: New way to handle NullPointerException
Post: Null-safe Type in Java 7: New way to handle NullPo...

Update: This feature has been removed from the final feature list that is being included in Java 7. Thanks @Stephen and @Stefan for the comments. Please refer to Project Coin for more details. NullPo...
tutorials4u JAVA 0 30,337 02-13-2011, 02:58 PM
  Thread: Most Useful Java Best Practice Quotes for Java Developers
Post: Most Useful Java Best Practice Quotes for Java Dev...

Quote 1: Avoid creating unnecessary objects and always prefer to do Lazy Initialization Object creation in Java is one of the most expensive operation in terms of memory utilization and performance i...
tutorials4u JAVA 0 30,689 02-13-2011, 12:19 PM
  Thread: Protect Java code from decompilation using Java Obfuscator
Post: Protect Java code from decompilation using Java Ob...

If you are writing Java classes and distributing them over the Internet, you should know that people can reverse-engineer, disassemble, or decompile your classes into Java source code. One of such dec...
tutorials4u JAVA 0 30,964 02-13-2011, 11:50 AM
  Thread: Playing with JVM / Java Heap Size
Post: Playing with JVM / Java Heap Size

Java programs executes in JVM uses Heap of memory to manage the data. If your Java program requires a large amount of memory, it is possible that the virtual machine will begin to throw OutOfMemoryErr...
tutorials4u JAVA 0 30,354 02-13-2011, 11:43 AM
  Thread: How to Sort Arrays in Java using java.util.Arrays class
Post: How to Sort Arrays in Java using java.util.Arrays ...

Here is a small but very useful tip that every Java programmer should be aware of. Have you ever tried sorting arrays in Java? Well, java.util.Arrays class has built in method to make your job easy. Y...
tutorials4u JAVA 0 30,321 02-13-2011, 11:40 AM
  Thread: Calculate Free Disk Space in Java using Apache Commons IO
Post: Calculate Free Disk Space in Java using Apache Com...

As a Java developer, lot of times I have to play around with file system. Sometimes I have to copy files/directories from one location to another; sometimes have to process certain files depending on ...
tutorials4u JAVA 0 29,815 02-13-2011, 11:34 AM
  Thread: Convert String to Enum Instance in Java
Post: Convert String to Enum Instance in Java

Recently while working in one of the requirement, I had to convert String values to Enum. I didn’t realize there is a simplest way of doing this. Here is the solution. Whenever an ENUM is complied in...
tutorials4u JAVA 0 33,715 02-13-2011, 11:31 AM
  Thread: Implementing Stateless Session EJBs with Spring
Post: Implementing Stateless Session EJBs with Spring

Spring provides a abstract base classes you may derive from to make it easier to implement Stateless Session Beans. Aside from reducing the unwanted code you have to write, these classes encourage and...
tutorials4u JSP 0 47,595 02-06-2011, 09:11 AM
  Thread: Building Your Own Custom JSP Tag Library
Post: Building Your Own Custom JSP Tag Library

We can build Custom Tags in Jsp by using Tag File.A tag file is a special kind of custom action that is developed much like a JSP page. Unlike JSP pages, tag files can be invoked from within JSP pages...
tutorials4u JSP 0 15,899 02-06-2011, 09:04 AM
  Thread: Java API to write data in MS Excel Files using Apache POI with example
Post: Java API to write data in MS Excel Files using Apa...

This article explains how to write a very basic java code to write into MS Excel files using with Apache POI API. The POI project consists of APIs for manipulating various file formats based upon Mic...
tutorials4u JAVA 0 36,490 02-06-2011, 09:00 AM
  Thread: Send Email Using Log4j with example
Post: Send Email Using Log4j with example

This article explains how to write a very basic code to email the log statements in the shipped code using Log4j . This does not explain indepth knowledge on writing Log4j Configuration. But, this wri...
tutorials4u JAVA 0 33,643 02-06-2011, 08:56 AM


Send your comments, Suggestions or Queries regarding this site at info@tutorials4u.net

Copyright © 2010 Tutorials4u.net All Rights Reserved