Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

Antipatterns In Java Programs

By Exforsys | on July 1, 2006 |
J2EE

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 application is good or bad. Whether or not a design is good or bad is also dependent on the situation.

While using some objects may be good for certain situations, using them for other situations could be an example of bad design. Antipatterns often result from bad decisions which are made on the part of the programmer. These decisions could be made because the programmer either lacks the necessary experience, or because they have simply made a decision based on faulty information. Antipatterns are generally not discovered until an application is in the production phase. A programmer who has not worked with the software before may add an element to the product which destroys its design. If antipatterns are documented when they occur, this can allow the programmer to avoid the same mistakes on future projects.

When you are using J2EE, this is very important. The design of J2EE places an emphasis on being simple, but may programmers have made it much more complex that it is supposed to be. If you are creating a program or maintaining it, understanding antipatterns can lead you to success. When you find these patterns, you can change these patterns to get rid of the flawed designs and enhance the capability of the software. There are several parts of a software where antipatterns are very common. The first obvious area is the overall design of the software.

Many programmers will create programs with strong classes instead of interfaces. There are a number of advantages to placing an emphasis on the interface instead of the classes. You won’t have to worry about using a certain implementation, and you will also be able to easily alter the behavior during the runtime phase. The term interface can be used to denote an abstract class as well. The programs you create should never be chained into a certain code. This may not be important if you know that the behavior you are designing will never need to be altered.

Another antipattern which is commonly seen in applications is the excessive use of coupling. When you write code it is better to couple as little as possible. If you write code to perform a specific task, it should only perform the task that you need it to perform. This will keep your code crisp and clean. It will also be easy to ready and handle. Despite this, there are situations that occur when it is easy to use coupling. An example of this would be security. One method you can use to handle this is to use Aspect Oriented Programming. The AOP method will allow you to place the behavior of the aspect into the program when it is time for it to be compiled.

When programmers use too much technology, they can create antipatterns. Developers who are skilled in multiple areas will often use this technology for a large number of projects which are similar. They may do this even when it is better to use another type of technology. These individuals will consider technology that they do not know to be risky. The best way to solve this problem is to gain a large understanding of a wide variety of different programs. This can be accomplished through training. The last problem that you will run into is called input antipatterns.

This usually happens when you create Java programs that fail to handle input data correctly. For example, if you build a website that asks a user to login with a specific user name and password, it should only receive information that is correct for the user name and password. You will want to create a site which rejects characters which are not valid. If it fails to do this, a large number of problems can arise. To solve problems with input antipatterns, you will want to use what is called a monkey test.

« « How To Build On The Five Paragraph Essay
How a Profiler Can Improve Your Java Applications » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 394 Followers
  • Popular
  • Recent
  • Servlet Basics

    December 6, 2005 - 0 Comment
  • Quickly Develop Java Programs With Tapestry

    July 12, 2006 - 0 Comment
  • How to Install and Use NetBeans for Java Development

    June 26, 2005 - 0 Comment
  • Servlets Advanced

    December 12, 2005 - 0 Comment
  • How To Run J2ME Programs on Palm Devices

    July 14, 2006 - 0 Comment
  • .NET and J2EE – A Comparsion Study

    November 26, 2005 - 0 Comment
  • JSP Basics

    May 7, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • Future of Java Technology

    November 26, 2005 - 0 Comment
  • How a Profiler Can Improve Your Java Applications

    July 1, 2006 - 0 Comment
  • Why It is Important To Focus On Java Exceptions For Your Programs

    July 27, 2006 - 0 Comment
  • Important Features of Java – Multithreading, AWT

    July 26, 2006 - 0 Comment
  • What You Should Know About Java XML

    July 25, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • How To Run J2ME Programs on Palm Devices

    July 14, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Quickly Develop Java Programs With Tapestry

    July 12, 2006 - 0 Comment
  • A Java TOC2 Class Which Can Contact Aim

    July 12, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • Why It is Important To Focus On Java Exceptions For Your Programs
  • Important Features of Java – Multithreading, AWT
  • What You Should Know About Java XML
  • What You Can Do To Deal With Java’s Memory Retention Problems
  • Java Overview

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT