Primitive data types are passed by value.
[Source: JAGAN MOHAN "Interview questions bible"]
Search results for All
1.Forming
2.Storming
3.Norming
4.Performing
2.Storming
3.Norming
4.Performing
In Java the arguments are always passed by value .
[Source: JAGAN MOHAN "Interview questions bible"]
[Source: JAGAN MOHAN "Interview questions bible"]
No. A level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have ...
What is the default value of an object reference declared as an instance variable?
Posted by Interview Answers
null unless we define it explicitly.
[Source: JAGAN MOHAN "Interview questions bible"]
[Source: JAGAN MOHAN "Interview questions bible"]
Copy constructors are called in following cases:
a) when a function returns an object of that class by value
b) when the object of that class is pass ...
What is the difference between declaring a variable and defining a variable?
Posted by Interview Answers
In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization.
e.g S ...
What is Overriding?
Posted by Interview Answers
When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the met ...