
Dear Sir/Madam i am using the following code. expected to not have any output but it still showing "welcome".. please help me why it showing "welcome".
class c1
{
int a=5;
while(a>1)
{
a=a+1;
if(a<3)
{
System.out.println("welcome");
}
}
}

This code is not even compiling. it is showing compiler errors.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.