-
SingleTon DesignPattern
Singleton pattern comes into creational design pattern category, the main objective of the creational pattern is to instantiate an object and with Singleton Pattern we will allow only one instance of the class to be created. Here in this article we will understand how we can create an Singleton class in Java.Singleton Class Code: package…
-
Invoking Class Methods using Reflection in Java
Sometimes we want the code should be dynamic and we even want to call the class methods dynamically. This article describes on how we can invoke the class methods dynamically using variables.To achieve the above operation we use the concept of Reflection in Java. Here in this article i am using 2 java files, Client.java…
-
Sub Class Mapping
Mapping Inheritance with Java ClassesIn just about any application, some kind of inheritance hierarchy needs to be mapped to permanent stor-age. As you saw there are several ways to map the inherence hierarchy. In our mapping,we’ll consider the following methods:❑ Table-per-class hierarchy❑ Table-per-subclass❑ Table-per-concrete class http://www.facebook.com/plugins/like.php?href&layout=standard&show_faces=true&width=450&action=like&font&colorscheme=light&height=80
-
Prototype
In most of the interview and from the most of the intelligent peoples this question comes if you will tell them that now i know the java script ,without wasting much time they will launch the questionwhat is prototype in java script?My this article will expain the concept behind the java script’s prototype Prototype is…
-
Edit any webpage
This is cool! GO to any web page, clear the address bar, and paste this: “javascript:document.body.contentEditable=’true’; document.designMode=’on’;Enjoy! http://www.facebook.com/plugins/like.php?href&layout=standard&show_faces=true&width=450&action=like&font&colorscheme=light&height=80
-
Creating and Configuring Servlets
Configuring ServletsYou define servlets as a part of a Web application in several entries in the J2EE standard Web Application deployment descriptor, web.xml. The web.xml file is located in the WEB-INF directory of your Web application. The first entry, under the root servlet element in web.xml, defines a name for the servlet and specifies the…
-
Design Patterns
Factory pattern comes into creational design pattern category, the main objective of the creational pattern is to instantiate an object and in Factory Pattern an interface is responsible for creating the object but the sub classes decides which class to instantiate. It is like the interface instantiate the appropriate sub-class depending upon the data passed.…
-
Welcome Note!
Welcome to my blog ! Here I collect my random thoughts and paint them on pages as and when they occur. I believe internet is the best thing that is invented and developed by mankind. An excellent platform to share knowledge and gather constructive feedback. What makes it even more special is users such as…