What makes a function well defined?



What makes a function well defined?..

Answer / Suresh Nautiyal

A function in Java is considered well-defined if it meets certain conditions: it has a return type (except for the main method), it has a name, it has a body (code block enclosed by curly braces), and it follows the proper syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the actions that can occur when a thread enters blocked state?

1 Answers  


How many types of classes are there in java?

1 Answers  


What are some examples of variable costs?

1 Answers  


Which one will take more memory: an int or integer?

1 Answers  


What is the method overriding?

1 Answers  


Can we convert stringbuffer to string?

1 Answers  


Is 0 true or is 1 true?

1 Answers  


Explain about transient variables in java?

1 Answers  


What is a top level class in java?

1 Answers  


Why can we not override static method?

1 Answers  


explain the concept of inheritance with an example?

9 Answers   Polaris,


Is arraylist ordered in java?

1 Answers  


Categories