final with java code