I am in early stages of learning Java, will be posting the differences I find between PHP and Java with my knowledge in PHP.

PHP : You will be able to access variable outside of the IF statement block that which is declared inside of IF statement block

JAVA : You will not be able to access variable outside of the IF statement block that which is declared inside of IF statement block.

 

 

PHP SNIPPET

 

JAVA SNIPPET

 

Leave a Reply

Your email address will not be published.