subject

Which of the following is a static method? 1) method1
2) method2
3) SomeClass
4) SOME_VALUE
5) This cannot be determined by examining the below code

public class MainClass
{
public static void main(String[] args)
{
SomeClass myObject = new SomeClass(4, 5);

int fred = SomeClass. SOME_VALUE;
int barney = myObject. method1();
int wilma = SomeClass. method2(4);
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using bankerโ€™s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
You know the right answer?
Which of the following is a static method? 1) method1
2) method2
3) SomeClass
4)...
Questions
question
Mathematics, 23.11.2019 05:31
Questions on the website: 13722363