Pavan Archive
Q: What are basic OOPS Concepts? A: – Inheritance : When a child class acquires all the methods and properties of parent class it is called inheritance. Java supports inheritance either using classes or interfaces. Encapsulation: In above class,
Lets see how we can sort our Employee objects using different criteria like id, name, salary. SortTest remains the main class that will perform creating and filling objects for us. This time employee class is plain old
In Java you can do sorting by implementing 2 interfaces 1) Comparable 2) Comparator Here we will see sorting example using Comparable Interface. As an example we will be sorting objects of Employee class. When using comaprable
Here I’m going to post a class that will extract all valid URLs from a web page. The example can be treated as a basic web crawler. My class uses “URLConnectionReader” provided by Sun Tutorial The class
In my last post I mentioned “Config Class”couple of times.. here you will see actual class and its usage. The class is very simple. We just need to provide proper path to config file we going to
It’s been too long, I didnt get time to post anything OpenSource. So here I am again with one simple class Database, to connect to MySQL in Java. You can use this class in 2 ways –
I googled quiet some time on using custom links for your site on windows using XAMPP. All of them suggested me to uncomment line for ‘mod_rewrite’, set AllowOverride to All. I tried this but it still faced
If you are programming in PHP, I bet you are using “prints and dies” to debug your code. I know its the easiest way to debug any web based program. But some time you “die” just don’t
Thumbnails proves to be very useful in presenting various online and print media. Here I would like to share a simple function to generate image thumbnails in php. I used this a lot for simple presentations. Supported
HTTPS, it’s a secure HTTP protocol. With the web becoming part of a day to day life people expect almost all application and services should be web enabled and it will happen soon. As huge transactions are
Understand the requirements: It’s often the case that you (a developer) don’t gather requirements. It’s either project manager, lead or say module owner. Requirements are gathered and handed over to concerned engineer / developer. In this case,
Xampp is the best option to run websites on windows. Very easy to install, manage. Good community, excellent support, nothing more is needed in Open Source Environment. It happens with me all the time, my machine goes