I am planning to appear for SCJBCD exam ( EJB 2.1). But i doubt if this certification will add weightage to my Resume. B'cos EJB 3.0 is already being out and also Spring + Hibernate being preferred in place of EJB's.
When we do a refresh on a jsp page, the same struts action gets called again and the record is saved more than ones in the database. How can i handle this. I do not want to disable the browser history. Do we have any other solution for this.
Why does the following give compilation error at line 1. Class B extends Class A which is in a different package.
//in file A.java package p1; public class A { protected int i = 10; public int getI() { return i; } }
//in file B.java package p2; import p1.*; public class B extends p1.A { public void process(A a) { a.i = a.i*2; // line 1 } public static void main(String[] args) { A a = new B(); B b = new B(); b.process(a); System.out.println(a.getI()); } }