You are asked to create a method that accepts an array of integers and returns the highest value from that array. Given the code fragment: Which method signature do you use at line n1?
Don't be confused !!
method : access modifier optional specifier return type methode name (parameters)
static int findMax(int[])
static : because, the method is used directly in a static main method (the method exist alone without instanciating the class Test)
int : return type, we want just the maximum int value from the array
int[]: the method takes an array of int.
Correct is Letter B because we want int array as response and I tested.
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
praroopgupta
Highly Voted 2 years, 9 months agoMPignaProTech
Most Recent 8 months, 2 weeks ago7df49fb
1 year, 3 months agoDarGrin
1 year, 8 months agodsms
1 year, 10 months agoIbrahimAlnutayfi
2 years agoKolodets
2 years, 2 months agoCreazyyyyGirl
2 years, 3 months agoAnnie432
2 years, 5 months agobaledevit
2 years, 8 months agoiSnover
2 years, 8 months ago