Here there are three local variables called localvar. One is assigned the value, ‚hello world‛ within the ‘main scope’ of the program; two others are assigned integers within the scope of two separate methods: since each local variable has a different scope, the assignments have no affect on the other local variables with the same name in different scopes. You can verify this by calling the methods in turn: