int x=5,i=1,y=0;
while(i<=5)
{
y=x++ + ++x;
i=i+2;
}
System.out.println(x);
System.out.println(y);
System.out.println(i);


How to solve this? Please explain!


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Advanced Java Interview Questions

What is in-memory replication?

0 Answers  


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  


Where can I ask questions and make suggestions about seam?

0 Answers  


a US company has filed my H1B visa ,, and i got selected in random number process.I wanna ask Could they ask regarding my languages(java,c++) or there will b just general questions?? And wat kind of questions will they ask in embassy interview??

2 Answers  


For which statements does it make sense to use a label?

0 Answers  






Is the session factory thread safe?

0 Answers  


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

0 Answers  


What is Servlet Filter And What does it work?

1 Answers   TCS,


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there. &#61656; What is the issue with application? &#61656; What are the first things which come in your mind?

1 Answers   L&T,


How many JSP scripting elements and what are they?

4 Answers   TCS,


what are design patterns in java?give with example?

2 Answers   HCL, iGate,


What method is invoked to cause an object to begin executing as a separate thread?

0 Answers  


Categories