MY mENU


Saturday, 16 February 2013

Marker Interface

Marker Interface: an interface that is used to check/mark/tag the given object is of a specific type to perform a special operations on that object, is called marker interface. Marker interface will not have methods, they are empty interfaces.

It is used to check whether we can perform some special operations on the passed object.

For example:
If class is deriving from java.io.Serializable, then that class object can be serializable else it cannot.

If class is deriving from java.lang.Clonable, then that class object can be cloned, else it cannot.

In side those particular methods, that method developer will check that the passed object is of type the given interface or not by using instanceof operator.

Write an empty interface and use in the method to check the passed object is of type the interface or not by using “instanceof” operator.

Is empty interface a marker interface?

Depends, if it is using in instanceof operator condition it called marker else it is call empty interface.

Predefined marker interface:

 1. Java.lang.Clonable

2. Java.io.Serializable

3. Java.util.RandomAccess

4. Java.rmi.Remote

5. Javax.servlet.SingleThreadModel

6. Java.util.EventListener

Friday, 15 February 2013

Delete administrator Password

How to "Delete administrator Password" without any software

Method 1:
Boot up with DOS and delete the sam.exe and sam.log files from Windows\system32\config in your hard drive. Now when you boot up in NT the password on your built-in administrator account which will be blank (i.e No password). This solution works only if your hard drive is FAT kind.

Method 2:
Step 1. Put your hard disk of your computer in any other pc .
Step 2. Boot that computer and use your hard disk as a secondaryhard disk (D'nt boot as primary hard disk ).
Step 3. Then open that drive in which the victim’s window(or your window) is installed.
Step 4. Go to location windows->system ­32->config
Step 5. And delete SAM.exe and SAM.log
Step 6. Now remove hard disk andput in your computer.
Step 7. And boot your computer:-)

Wecome Note

It’s a simple trick to amaze your friends.When you Log On infront of them.
Yeah a trick to make your Computer Welcome you on StartUp.
Follow this tricks /b>
Open Notepad
Paste the bellow code.


Dim speaks, speech
speaks="Welcome Back, Netricks"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks

step2:now,Replace Netricks withyour Name
Click Save As and rename as Welcome.vbs
Copy File Welcome.vbs and paste it in bellow address
Windows-7
C:Users/Netricks/AppData/Roaming/MicrosoftWindows/Start Menu/ProgramsStartup
Replace Netricks with your username and C: with your RootDrive
Windows-Xp
documents and SettingsAll UsersStart MenuProgramsStartup
Done Log Off and Log In Amazed?
Now Your Pc welcomes you.