Javy Writes Here

January 4, 2008

Design Patterns used in JDK

Examples of the common design pattern strategies used in some of the core classes in Java SDK.

  • Creational Patterns
    • Singleton : java.lang.Runtime
  • Structural Patterns
    • Facade : JDBC framework
    • Flyweight : java.lang.String uses ‘pool of constants’.
    • Proxy : RMI Framework

November 22, 2007

Reincarnation of Java objects : Serialization and Externalization

– In case of Serialization, the reconstruction ( de-serialization ) occurs using the bits from the stream used to reconstruct.
- In case of Externalization, the reconstruction happens in this order: the public no-arg constructor is called; then readExternal(..) is invoked.

However in case of serialization, when unpacking the object tree, if one of the superclass does not implement Serializable, then the constructor is invoked from that superclass and upwards.

November 8, 2007

Java Security Technologies

Filed under: Interview Tips — javywrites @ 1:12 pm
Tags:

For a professional with atleast 3 years experience in areas of Java & Network Security, the following areas is a must to brush up, for an interview

  • JAAS
    • Good tutorial
    • Just concentrate on the basics and terminologies ..
  • JSSE
    • Overview:
    • Just get to know how and why SSL is used.

In general, security topics to cover would be

  • Cryptography
    • Symetric Key Cryptography
    • Public Key Cryptography

The above link for JSSE should be good enough to get an overview of the above too..( see “HOW SSL WORKS” in that page…)..

  • Java support for Cryptography: should mention about JCA ( java cryptography architecture..)

 

Here is a good overview doc…for all the above technologies

White Paper from SUN

Blog at WordPress.com.