finalize

Cipher.doFinal output size

I am doing AES CBC decryption in java using javax.crypto . I am using the following Cipher class methods: public final void init (int opmode, Key key, AlgorithmParameters params) method for initialization, final int update(byte[] input, int inputOffset, int inputLen, byte[] output) method for decrypting the data, and finally I call t...

Do I need to implement a dispose or finalize in my objects?

For too long I let the garbage collector do its magic, removing all responsibilities from my self. Sadly it never turned into an issue... So I never gave a second thought to the subject. Now when I think about it I don't really understand what the "dispose" function really does and how and when it should be implemented. The same quest...

What is the difference between finalize and dispose in .net ?

Possible Duplicate: Finalize vs Dispose Hi, Recently I was quizzed in an interview about finalize and dispose. When is each one of them used and how is Garbage Collector related to them. Kindly share links to enlighten more on the topic. Kindly share ... Thanks in advance. ...