Observe the code:
public class Employee {
String name;
static int employeeCount;
// Line 1
Which of the following code can be included in Line 1?
Select one or more:
a)public void displayO{
System.out.println("Employee count "+employeeCount);
}
b.public void displayO{
System.out.println("Employee Name"+name);
}
c.public static void display(){
System.out.println("Employee count "+employeeCount);
}
d.public static void display() {
System.out.println("Employee Name+name);
}
Answers
Answered by
2
Answer:
i think the answer is option c
Similar questions
Social Sciences,
5 months ago
Computer Science,
5 months ago
Political Science,
5 months ago
Math,
10 months ago
English,
10 months ago
Math,
1 year ago
Biology,
1 year ago