Tip Bank

DevX - Software Development Resource

Printing an Object in Java

When you use System.out.println( ) by passing an object as an argument, the JRE invokes its toString( ) method by default. If you haven’t overridden this method, then you end

DevX - Software Development Resource

Protecting Freed Memory

When you’re freeing memory, remember to set the memory contents to 0 so no other malicious program can read it after it’s been freed. //For example#define DATA_SIZEBOOL function(){ char pszData

DevX - Software Development Resource

Find Out What Cipher Suites Are Supported in JSSE

You can make the Java Secure Socket Extension list the supported cipher suites using the following code: SocketFactory SSLF=SSLSocketFactory.getDefault(); SSLsoclu=SSLF.createSocket(“12.110.20.211”,443); String[] cipher_suites=((SSLSocket)SSLsoclu).getSupportedCipherSuites(); for(int i=0;i