Posts

Showing posts from June, 2011

Getting the Method Information of a given class

Image
Hello guys After some time, All Java Programmers and Developers Know java is a Object Oriented Programming language. Java can be explain with few words, which is "classes and make objects using the class and interact between objects" so every object have the template as their classes. Here we are going to show how can we get the information of a given class at the run time. To overcome the problem we have to use the Reflection API which is inbuilt with jdk. Reflection is a very useful tool for developers because if we would like to make some changes to our class at runtime it is the most suitable way. I would like to show a small program which will provide the all methods of a given class at runtime. import java.lang.reflect.*; public class MethodsFinder {   public static void main(String args[]){          try {             Class classes = Class.forName(args[0]);             Method[] methods = ...

Renew IP Adress

Image
We all facing the problem which occurs when we are browsing internet. The problem is at the browsing time our browser displays a message which is "Page not found" error message. After showing this message we check our modem and other all connections with the internet but the problem is not in that devices. This type of problem occurs because to renew your IP address, which stands for Internet Protocol Address. We can renew the IP address by doing the process given below. 1. Go to run dialog box by pressing window key and r key (window + r) 2. Type the word cmd on the run dialog box 3. Click ok button on run dialog box 4. Then comand prompt will appear 5. In command prompt type ipconfig /release and press enter key 6. You can see the IP address of your machine in command prompt 7. Type the words ipconfig /renew in the next line and press enter key 8. Ok you change your IP address and exit from command prompt The picture demo shown below