Core Java Technology Section Index | Page 116
What are the compatible and incompatible changes when dealing with versioned serialized objects?
If a newer version of a serialized object has to be compatible with an older version, it is important that the newer version abides by the rules for compatible and incompatible changes.
A compa...more
Why is Internationalization sometimes called I18N?
Because internationalization is too long to write all the time. There are 20 characters in internationalization. The number of characters between the first and last character is 18. So, if you wri...more
How do you create a Message Digest with the Java Security API? (Message Digest code example)
How do you create a Message Digest with the Java Security API? (Message
Digest code example)
What do you need to establish computer security?
There are essentially four aspects of computer security:
Aspect
Generally achieved by
Explanation
Effect
Confidentiality
Encryption
Protects message c...more
What is "private key"/"symmetric"/"secret key" cryptography?
What is "private key"/"symmetric"/"secret key" cryptography?
What is "public key"/"asymmetric" cryptography?
What is "public key"/"asymmetric" cryptography?
What is a Digital Signature?
Digital Signatures are used to ensure the identity of a sender. In conjunction with Message Digests, Digital Signatures prevents someone from altering a message and falsely claimin...more
What is a Message Digest?
A Message Digest is a digitally created hash (fingerprint) created from a plaintext block. All the information of the message is used to construct the Message Digest hash, but the ...more
What is hybrid cryptography?
Combination of public and private key cryptography, where the exchange of
an encrypted session key is done using public key cryptography. The following
encrypted session is then pursued with pri...more
Which class is the system default ClassLoader?
The default ClassLoader is sun.misc.Launcher$AppClassLoader (which is
fairly irrelevant in itself) which extends java.net.URLClassLoader. The reverse
(superclasses below subclasses) inheritance ...more
How can I compress my data to save bandwidth when sending across a socket?
The GZIPInputStream and GZIPOutputStream classes found in the java.util.zip package compress data with the GZIP file format, as defined by RFC 1952 (ftp://ftp.uu.net/graphics/png/documents/zlib/zd...more
How do I get the list of system properties that tell me things like which version of Java a user is running and their platform-specific line separator?
The System.getProperties() method will return the standard property set. However, in untrusted applets, you can only ask for specific properties, as in System.getProperty("java.version").more
How do I turn off the Just-in-Time compiler so I can get line numbers in my stack traces?
The 1.1 java runtime command takes a -nojit option to disable the JIT compiler. The Java 2 platform java runtime command takes requires -Djava.compiler=NONE instead.more
How do I work with message digests?
Get the message content as a byte[]. If coming from a file, read bytes from FileInputStream into ByteArrayOutputStream. Other sources would use similar methods, but remember to not treat content ...more
Is Java Y2K compliant?
Sun provides information on Java's Y2K readiness at http://www.sun.com/y2000/jumppage-temp/jdk.html. As long as you are using a compliant version, you are okay.more