Posts

Reflection APIs - A way to inspect classes at runtime

Java Reflection is a technology that looks inside a Java object at runtime and sees basically everything about the object that you would know at compile time. Java Reflection is a technology that looks inside a Java object at runtime and sees what variables it contains, what methods it supports, what interfaces it implements, what classes it extends—basically everything about the object that you would know at compile time. The Reflection API is located in the java.lang.reflect package and is included in any J2SE installation. Primarily it is intended for very generic programs such as database browsers or visual code editors, but it can be used in any other applications. Reflection is for Basic techniques There are two basic techniques involved in Reflection: discovery and use by name. Here are descriptions of both: Discovery involves taking an object or class and discovering the members, superclasses, implemented interfaces, and then possibly using the discovered e...

Java Singleton Pattern : Potential Problems and Solutions

The Java Singleton pattern belongs to the family of design patterns that governs the instantiation process. This design pattern suggests that at any time there can only be one instance of a Singleton (object) created by the JVM. You implement the pattern by creating a class with a method that creates a new instance of the class if one does not exist. If an instance of the class exists, it simply returns a reference to that object. How the Singleton pattern works: Here’s a typical example of Singleton: public class Singleton { private final static Singleton INSTANCE = new Singleton(); // Private constructor suppresses generation of // a (public) default constructor private Singleton() {} public static Singleton getInstance() { return INSTANCE; } } The classic Singleton does not use direct instantiation of a static variable with declaration — it instantiates a static instance variable in the constructor without checking to see if it already ex...

Struts Are the Really Very Beautiful..................

Three Days Before Struts started in Training program. I Heard that Struts are very difficult to understand. But After three days, I found how beautifully they are designed by the Craig R. McClanahan. I also learned Here in current company that learning the concepts is very neccessary rather than just gulping the APIS. I really thank our instructor for this. Hey I m not going to write about the struts, since web is just full of such kind of material. The spirit is to force urself to learn the basics of anything. Technology may change not the basic concepts. Time to Take a Break.

Exams Season of Tension, Isn't It?

Exams are going on, Tension is also there. But Exams should be there to test us, otherwise we''l become Lazy..... Isn't IT?

Hey Proud to be an Indian.

Hi day before yesterday, it was 59th Independance Day. We seen the as usual 15th august parade & just enjoyed another holiday. But we r forgetting the meaning of the day. On this day, i remembered what our President said in 'Ignited Minds'. His mission of transforming India into a developed country. Youth like us need to think abt it seriously. We can do this simply by performing our duties like not paying bribes, oppose the curruption, just switching the electric equipments, by keeping our environment clean, etc. By making people aware abt their fundamental duties & rights. Everyone need to do his share of work in transforming India into a developed. Lets make a commitment to ourself that we'll do these small things & help our country. In this way only, we'll find true meaning of these days like 15th August, 26 Janauary, etc. Ok bye for now, i m coming back soon... Ashish

Exams are Boaring, Are U agree...................

Hey frens, Exams are drawing near, sleepless nights, restless days & many more symptoms can be seen of examfobia. When we talk abt exams people start reacting in abnormal ways. Why people fear from the exams. The reasons may be, know to everybody. But here are some benefits of exams i expericed during exam periods. First , the mind start working at a great speed eg. people can pass exams with the preparation on only 15 days. Second, the subjects which are not understandable to u, are become so clear to that u start feeling that I'll teach the subject from Next Year. Many people may found another benefits of exams too, Can we share it sothat people start loving exams.. Do U think, Days like That'll come?

Believe in urself to get good Results

Hi frens, Some time before i was always think Paper Presentaion in some National Level Paper Presenation contests is very big think. It need a lot of hard work & as well as intelligence. I thought at that time whether i would be able to present my own paper in such contests or not. Few Days Back, there was such competetion in our college. My Head of Department inspired me to present a paper. He told me that i can present a perper very well. I thought & accepted his offer. I asked him about guidelines of it. I choose a topic for it & started prepring for it. Also I presented in a satisfactory way. Now I m taking part in another such compitetion, & my paper is also got selected for it. Now i feel quite good. I think it's a result of believing in myself. Nothing is impossible, if u think like this & work for it. So start beleving in urself, respect urself & love urself.........