#How does teachers check for errors in java

15 messages · Page 1 of 1 (latest)

gusty parrot
#

How do teachers check java code one by one on a methods return?

The last time i did an assignment on java, i tried all of my code and it went well. but as soon as i got the marks some of my methods crashed or returns a wrong values. It makes me think how do teachers do that, Thanks

frigid baneBOT
#

Hey, @gusty parrot!
Please remember to /close this post once your question has been answered!

rich zenith
#

Well, they probably look at your program, run it and try different values

lyric crown
#

@gusty parrot I think a good approach to answer this question is that you provide us with an assignment where this occurred and we can go over how we found what was failing so you can add a new step of things to look for in your development process next time.

rich zenith
#

if you are allowed to share it of course

harsh pewter
#

they have large tests they run automatically with junit

#

some of which checking the edge cases and one offs that can happen with peculiar inputs

rich zenith
#

this depends on the teachers

#

and what they are teaching

#

and where

#

it isn't always the same

keen whale
#

all teachers has different testing styles

#

but mostly they just look in the source code and try different inputs

gusty parrot
#

okaayy Thanks for the Info guyss, rlly appreciate it