| Boston Common Pictures |
|---|
| Niagara Falls Trip |
Let us have some tasty bites.
|
Exclusive
Summer Olympics news & widgets at NBC Olympics.com!
|
Instructions: Use arrow keys to move the player. |
| 8 Ball Champion Instructions: Please refresh the page to start a new game. |
| Hoop Shoot |
| 9 Ball Champion |
| Euro 2008 Web Soccer |
Friends,
As a Java family member, today I would like to share some useful information regarding potential code violations that are done usually by Java Programmers. I know how much pain we take to develop the projects, but keeping this information in mind while coding helps us to nullify the code optimization which is kind of rework in project development phase.
As per the “Variable naming convention rule” variables that are not final should not contain underscores in their names.
private String _pError; // Wrong
…….
private String pError; // Correct
Rule says final variables that should be fully captitalized and non-final variables that should not include underscores.
2. Instantiating Wrapper classes:
Try to avoid instantiating the wrapper classes.
3. Method Naming Conventions:
Method names should not contain underscores.
4. Calling overridable method in constructor.
Calling overridable methods during construction poses a risk of invoking methods on an incompletely constructed object and can be difficult to discern. It may leave the sub-class unable to construct its super class or forced to replicate the construction process completely within itself, losing the ability to call super(). If the default constructor contains a call to an overridable method, the subclass may be completely un-instantiable. Note that this includes method calls throughout the control flow graph - i.e., if a constructor Foo() calls a private method bar() that calls a public method buz(), this denotes a problem.
5. Throwing raw exceptions:
Avoid throwing certain exception types. Rather than throw a raw RuntimeException, Throwable,Exception, or Error, use a subclassed exception or error instead.
6. Usage of System.out.print(ln):
Consider using loggers rather than System.(out|err).print.
7. Logger variables:
The Logger variable declaration does not contain the static and final modifiers
In most cases, the Logger can be declared static and final.
8. Garbage collection:
Avoid calling triggering a garbage collection explicitly.
9. Method call on object which may be null:
The null check is broken since it will throw a Null Pointer Exception itself.
It is likely that you used || instead of && or vice versa.
class Foo {
String bar(String string) {
// should be &&
if (string!=null || !string.equals(""))
return string;
// should be ||
if (string==null && string.equals(""))
return string;
}
}
10. Usage of equals () comparison
Avoid using equals () to compare against null.
Inexperienced programmers sometimes confuse comparison concepts and use equals () to compare to null.
11. Empty methods in an abstract class should be abstract instead:
An empty method in an abstract class should be abstract instead, as developer may rely on this empty implementation rather than code the appropriate one.
public Object couldBeAbstract(){
// Should be abstract method ?
return null;
}
public void couldBeAbstract(){
}
}
| It’s on July 4th 2008; Since it’s a long weekend I planned to visit |
| |||
| | | | ||
|
| "Maid of the Mist", is a boat ride program which takes us almost into the basin of the magnificent water falls where water rushes with high speed and force and shakes up the boat. It’s a thrilling experience and nice relaxation for 30 minutes, when water rushes all around and soaking mist under hot sun. |
| ||
|
| ||||
|
| After finishing the cool boat riding with fantastic and thrilling experience, I kept my camera busy to capture some beautiful snaps from the “Observation Point”. |
| ||
| Cave of the Winds | ||||
|
|
|
| ||
|
| The Cave of the Winds trip took me closer to the waters of | |||
| | ||||
|
| ||||
|
| Next in my schedule was “The Horseshoe Falls”. This is considered to be the most impressive of the three falls that make up Niagara Falls. As per the records 90% of the water of the Niagara River flows over Horseshoe Falls, while the other 10% flows over the American Falls. The most enthralling aspect is the falls will be illuminated with different colored lights from | |||
| Fire works on July 4h. | ||||
| Since it was July 4th, | | |||
| All right are reserved. © Copyright 2008. | ||||
Edison, if you ask any telugu desi in US, immediately he/she says, its
We couple were passing through the Oak tree road, which is central place for all our Indian stores and restaurants.
“Panipuri or Gol Gappa or Gup chup is a popular street snack in the Indian sub-continent. It comprises a round, hollow "puri", fried crisp and filled with a watery mixture of tamarind, chilli and potato. The name panipuri literally means "water in fried bread".
It is available all the way from a road side cycle puller stalls to big restaurants now.
(i.e. disposable)
He started serving “gup chups” counting in his mind to almost 15 to 20 people for how much is served. Amidst his work, he talks about cricket score (That was cricket world cup season). After that we ordered for few more varieties like ‘Ragada and dahi papdi” as other did already. Believe me, he maintain the same taste whenever I go. It’s simply marvelous. Finally he came back with the figure exactly how much we need to pay. I saw that confidence in his face with his calculation. “Remember they do not charge and expect tips”.