Interviewer And Interviewee Guide

Java Classes Interview Question:

If the method does not return a value, its return type must be void
A) True
B) False

Submitted by: Administrator
It's true. If a method is not returning any value then we must have to specify it's return type as void.void indicates that method is not returning any value.
Submitted by: Administrator

Read Online Java Classes Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.