Hi sir, how can handle the below situation.... public class Test1{ public void method1(){ int a; } public static void main(String[] args){ // here, how can I access the variable 'a' to assign some value (here how can I implement ---- a = 100; } } Please bless me with your answer.......🙏🙏🙏🙏🙏🙏🙏
@sujithkumar9195 Жыл бұрын
I think you can't access it in the main method cause it's a local variable. To access it, you can declare as a class variable using static.
@uchiha_sasuke_482 жыл бұрын
Sir, can't we apply sum( ) on two attributes at a time?
@sairam12123 Жыл бұрын
What is the count student who taken ece branch what is the count