Online Access Free 1Z0-815 Exam Questions
Exam Code: | 1Z0-815 |
Exam Name: | Java SE 11 Programmer I |
Certification Provider: | Oracle |
Free Question Number: | 125 |
Posted: | Sep 02, 2025 |
What is the result?
Class StaticField {
static int i = 7;
public static void main(String[] args) {
StaticFied obj = new StaticField();
obj.i++;
StaticField.i++;
obj.i++;
System.out.println(StaticField.i + " "+ obj.i);
}
}
What is the proper way to defined a method that take two int values and returns their sum as an int value?