Methods - mod 4 Flashcards
1
Q
Two types of methods
A
Class and instance
2
Q
Main method is which type of method
A
class
3
Q
access_mode options
A
public, private or protected
4
Q
Whats the output?
A
x = 5
the x in main is a different variable than in changeVariable
5
Q
Java will convert types. Will it convert floats to ints?
A
No.
6
Q
A