Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

default argument in java

Short answer: No.

Fortunately, you can simulate them.
  
-  use method overloading
-  allow nulls as an input
-  declare a method with Java Varargs

To know how to do those, check : 
	http://dolszewski.com/java/java-default-parameters/
Source by dolszewski.com #
 
PREVIOUS NEXT
Tagged: #default #argument #java
ADD COMMENT
Topic
Name
1+6 =