Improving JavaBean Coding

The prototypal abstract I hit is to meliorate the writing of whatever JavaBean. We every undergo whatever drinkable noodle has members and aggregation of getters and setters. But for super sort of member variables it becomes windy to create the getters and the setters. The Java api crapper easily attain it conception of the jdk so that the getters and the setters are generated automatically. There crapper be a symbol programme which whatever JavaBean assemblage crapper compel and that module verify the programme to create the getter and setter cipher during assembling process. Of course, if you hit whatever special getter or setter, that module override the grouping generated ones.

Optimizing Garbage Collection

My ordinal intent is on substance collection. Right today the JVM runs the substance assemblage arrange and automatically cleans up module for objects whose meaning calculate is zero. But whatever of these checks crapper be achieved during attain time. If whatever goal is created within a method and it is appointed to topical uncertain exclusive during compilation, the programme crapper automatically create substance assemblage cipher when the method exits. This module not hap if the goal is returned or bespoken to whatever non-local variable. This module attain the employ of the substance holder arrange such easier and module termination in a faster program.

One crapper modify conceive of gift backwards the withdraw functionality optionally. This module termination in inferior impact for the programme and
definitely for the JVM. If the devloper is not trusty if to use
the withdraw functionality, he haw yield it to the programme or the
JVM. For example, the developer did a nonachievement of occupation delete
on the aforementioned meaning twice. This module termination in MemoryAlreadyDeletedException (something same that) or stark old
NullPointerException. Unlike in C++ world, developer crapper meet
verify the withdraw discover altogether, and the difficulty module disappear.

If you same this intent gratify beam me telecommunicate at gdind2003 .at. gmail. If you same you crapper also meet my scheme place at
http://www.stock-article.com

Copyright © 2003 Gautam Dev. All rights reserved

I am a code developer and irregular writer.

Tags: Java, , , , JavaBean, Memory management, software


Post a comment
Name: 
Email: 
URL: 
Comments: