SystemoutprintlnParentfield_0;
This Java code is trying to print the value of a field called "field_0" in the class "Parent" to the console.
However, since the code is missing a semicolon at the end, it would not compile and would result in a syntax error.
Assuming that the code is corrected, the output would depend on the value assigned to the "field_0" variable in the "Parent" class. If the variable is declared as public and has a value assigned to it, the output would be that value. If the variable is not declared as public or is not initialized, the output would likely be an error or null.
原文地址: http://www.cveoy.top/t/topic/bBm6 著作权归作者所有。请勿转载和采集!