Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Thursday, November 22, 2007

use of @ConstructorProperties Annotation in java

import java.beans.ConstructorProperties;

public class Point {
private double x, y;

public Point() {
}

@ConstructorProperties({"x", "y"})
public Point(double x, double y) {
this.x = x;
this.y = y;
}
}

No comments: