whatis arguments &what is default argument
Answers were Sorted based on User's Feedback
Arguments are passed to parameters. Arguments are should
have some values, but parameters are declared in the
function, its only declaring the variables.
Default arguments depends on corresponding parameters.
| Is This Answer Correct ? | 2 Yes | 0 No |
Every Method have 0 or more than 0 argument.
If method have zero argument that is called default argument.
Arguments are passed in method parameter.
In every java program one default Constructor will be with
default argument.
| Is This Answer Correct ? | 2 Yes | 0 No |
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What are the different types of ways where you can iterate over a list? : java collections
What is the difference between comparable and comparator in java.util pkg?
What are the main classes of the list interfaces? : java collections
whatis arguments &what is default argument
what is hibernate ceteria ?
How to implement or use the singleton class in java?
What is the use of hashcode in java ?
how to deploy the web application ?
what is difference between business deligate and session facade ?
How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com