What does a void function return?



What does a void function return?..

Answer / Atul Chauhan

A void function in Java does not return any value. Instead, it performs some specific task or operation without producing a result that can be assigned to another variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)

0 Answers  


Enlist diffrent types of inheritance supported by java?

1 Answers  


can we override the main() method in java????

3 Answers   Vimukti Technologies,


How to add and remove nodes in Jtree?

1 Answers  


Define inheritance with reference to java.

1 Answers  


what is ennumaration?

2 Answers   Amdocs,


What are the supported platforms by java programming language?

1 Answers  


How does singleton class work?

1 Answers  


When garbage collector invokes object?s finalize() method?

5 Answers  


When super keyword is used?

1 Answers  


Objects or references which of them gets garbage collected?

1 Answers  


Write a program to calculate factorial in java?

1 Answers  


Categories