Java - Interview
Java Interview Java Script
Home
Multithreading
Hibernate
Spring
Android
Miscellaneous
TrackWise
TrackWise Tutorial
TrackWise Interview
SCJP
Object
Abstract
Array
Class
Constructor
Exception
Interview
Java
Spring
Hibernate
JSF
PL / SQL
JSP / Servlet
Web Services
Designing Patterns
Others
>>>
ERROR
Offensive Security
Struts 2
JSF
PHP
JDBC
JAVA
AWS
KOTLIN
Web Services
Monday, 4 July 2016
Can an inner class declared inside of a method access local variables of this method?
It’s possible if these variables are final.
What can go wrong if you replace && with & in the following code:
String a=null;
if (a!=null && a.length()>10)
{...}
A single ampersand here would lead to a NullPointerException.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment