public class testhjk { static string n=''; public static void first(){ n='rohit'; system.debug('First'+n); } public static void second(){ system.debug('second'+n); } }