What is role of void keyword in declaring functions?



What is role of void keyword in declaring functions?..

Answer / Sushant Kumar

The 'void' keyword is used in Java to denote that a function or method does not return any value. In other words, it has no return type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a string token?

1 Answers  


What are selection structures?

1 Answers  


What are the types of classes in java?

4 Answers   HCL,


What is meant by wrapper classes?

3 Answers  


What does jenkins do?

1 Answers  


What is the purpose of static methods and static variables?

1 Answers  


class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?

2 Answers   Logica CMG,


What is the use of optional ?

1 Answers  


Why deletion in linkedlist is fast than arraylist?

1 Answers  


What is append in java?

1 Answers  


How to declare an arraylist in java?

1 Answers  


Explain about static imports in java?

1 Answers  


Categories