Friday, March 18, 2011

some java tips


1) switch expects an argument of int type. But due to auto casting, short, byte, char also work.
2) strictfp Used in front of a method or class to indicate that
floating-point numbers will follow FP-strict rules in all expressions.
3) Even the order of arguments matter when overriding a method
4) this and super are special kind of keywords
5) object references and local variables are stored on stack.
6) Is a relationship is inheritance and HAS a relationship is a composition (One class has an object of other as its member e.g A car has an engine)



No comments:

Post a Comment