Explain Codes LogoExplain Codes Logo

Best Articles — Page 4

When to use generic methods and when to use wild-card?

java
type-parameters
wildcards
generics

When should we use Observer and Observable?

java
event-driven-architecture
thread-safety
memory-leaks

When should we use intern method of String on String literals

java
string-interning
performance-optimization
memory-management

When should we call System.exit in Java

java
shutdown-hooks
system-exit
thread-management

When should one use final for method parameters and local variables?

java
immutability
best-practices
thread-safety

When should I use File.separator and when File.pathSeparator?

java
file-separator
file-path-separator
cross-system-compatibility

When do you use map vs flatMap in RxJava?

javascript
rxjava
observable
error-handling

When creating HTML emails, should we use html, head, body tags?

html
email-design
web-standards
compatibility

When a child element overflows horizontally, why is the right padding of the parent ignored?

html
responsive-design
css-box-model
cross-browser-testing

What values for checked and selected are false?

html
boolean-attributes
html5-specification
checkbox-behavior

What values can the HTML5/XHTML role attribute have?

html
aria-roles
semantic-html
assistive-technologies

What underlies this JavaScript idiom: var self = this?

javascript
closure
this-keyword
event-driven-programming

What to return if a Spring MVC controller method doesn't return value?

java
response-entity
void-method
http-status-code

What's the simplest way to print a Java array?

java
array-printing
debugging
java-8

What's the scoop on String.slice vs String.substring?

javascript
string-methods
negative-parameters
substring-vs-slice

What's the nearest substitute for a function pointer in Java?

java
functional-programming
lambdas
functional-interfaces

What's the effect of adding 'return false' to a click event listener?

javascript
event-propagation
default-behavior
preventdefault

What's the difference if I put css file inside `` or ``?

html
responsive-design
performance
best-practices

What's the difference between Thread start() and Runnable run()

java
concurrency
thread-pool
callable

What's the difference between meta name and meta property?

html
metadata
seo
rdfa