Which of these is a legal definition of a method named gkindiaonline assuming it throws IOException, and returns void. Also assume that the method does not take any arguments. Select the one correct

Question:
Which of these is a legal definition of a method named gkindiaonline assuming it throws IOException, and returns void. Also assume that the method does not take any arguments. Select the one correct

1.gkindiaonline() throw IOException{}

2.void gkindiaonline() throw IOException{}

3.void gkindiaonline() throws IOException{}

4.void gkindiaonline(void) throws IOException{}

Posted Date:-2021-10-25 05:21:08


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!