What is a void method java?
Answer / Kuldeep Kumar Azad
A `void` method in Java is a method that doesn't return any value. It may still perform some actions, such as printing output or updating variables, but it doesn't return a result.nnExample:n```javanpublic void printMessage() {n System.out.println("Hello World!");n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is class forname used for?
Which browsers work with java?
What restrictions are placed on method overriding?
What is static synchronization?
Java is Pass by Value or Pass by Reference?
What is a blocking method in Java?
Can an interface extend another interface?
Which non-unicode letter characters may be used as the first character of an identifier?
What is the purpose of extern variable?
What is Difference between Serializable and Externalizable in Java serialization?
Why cant we define System.out.println() inside a class directly?
What is difference between equals and hashcode method?