Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] hi guys check your java knowledge skiils and see if you can ans this

Status
Not open for further replies.

sugar85

Newbie level 4
Joined
Apr 5, 2013
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,345
a) Provide a method signature for a method “findMatch” that receives an integer named
key. It then uses the value of key to access a HashTable and returns the macting
Object.

b) Provide a method signature for a method “getBest” that receives an array of doubles
(use theList forthe parameter name). The method should locate the highest number
in theList and return its value to the calling program.

c) Provide a method signature for a method “getBestGrade” that receives a Student
and returns their best grade (ie “HD”, “N”, …)


Question 2
Your boss has just emailed you some source code in a file CheckThis.java. You have
placed the file into a folder c:\temp on your computer and are currently at the command
line c:\temp>

a) What command would you enter to check if you have the correct version of javac and
the paths have been set correctly?

b) You compile the program, and the bytecode is created. What is the name of the file
that contains the bytecode?

c) Assume the file does NOT contain a main method. What would happen if you typed
java CheckThis at the command prompt?
 

this is for java expert

a) Provide a method signature for a method named getAnimal that receives an index of
type int and returns a reference to a String object.

b) Provide a method signature for a method “testPassword” that receives a String and
returns true if the password is correct but false if the password is wrong.

c) Provide a method signature for a method named getBiggestNumber that receives a
two dimensional array of double and returns an int. Name the parameter “nums”.

d) Provide a method signature for a method “getBestTutor” that receives an array of
Tutor and returns a reference to a Teacher.

e) Write the first line of a constructor for the Dog class that has one parameter, the dog’s
name.

f) Write the method signature for the toString method of the Dog class.
 

Yep, I can answer it. Thanks for asking.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top