Search Results

Search found 1 results on 1 pages for 'james116'.

Page 1/1 | 1 

  • Java Extends value not updating

    - by James116
    I am currently working on a hibernate project(EJB and JSF), and i have multiple java classes. The data of parent is being change in the front end with JSF, however, it is not updating in the child class. Any idea as to what could be causing this? This is what i was doing. public class parent{ private String x = "UNKNOWN"; //Getters and setters public getX(){ } } public class child extends parent{ public string y{ //this is return UNKNOWN //instead of the new value being change by the user System.out.print(getX()); } } Thanks in advance

    Read the article

1