java

Writing Maintainable Codes

Submitted by arjay_nacion on
When working on a project where in you have to add features to an existing code written by other members of your team, you may have encountered problems understanding parts of the code. Sometimes the problems are caused by codes not well commented or sometimes the codes are simply unreadable. Take this code for example:
  1. int x = Integer.parse(request.getParameter("x").toString());

Speed-Up Software Development : Framework-Driven Development

Submitted by arjay_nacion on
Many software developers today are still using the old way of "write your own code" strategy. Although it may seem right for a developer's perspective in terms of skill enhancement and originality, when it comes to developing large-scale applications on a tight deadline, this may not seem to be the best approach.

SpringSource tc Server

Submitted by admin on
If you were running apache tomcat server in your web server then most probably you face some problem on serving some of your servlet and jsp pages. One of the problems I encounter before with tomcat server is it’s hard to install. Especially if you are not an expert user in Linux operating system. Tomcat server can run servlet and jsp pages. Because of this you are not limited on using a static

Exception Handling

Submitted by admin on

What is an Exception?

Definition:

“When an unusual, irregular, abnormal or nonstandard condition arises in a sequence of code at run time this phenomenon is referred as Exception handling

An exception is a runtime error.

In Object Oriented, an exception is an object that is used to describes an exceptional condition that has occurred in a piece of code.

Interfaces

Submitted by admin on

Definition:

In java programming language, an interface is an abstract, conceptual or concrete type that is used to specify an interface.

How to use an interface:

  • By using the key word interface, we can fully abstract a class interface from its implementation.

It means that, using interface, we can specify what a class must do, but not how it does it.