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

void examians(void) throws IOException{}
void examians() throws IOException{}
void examians() {} throws IOException
void examians() throw IOException{}
examians() throws IOException{}

ANSWER DOWNLOAD EXAMIANS APP

JAVA Constructors and Methods
class MyClass{      MyClass(){            System.out.print("one");      }      public void myMethod(){            this();            System.out.print("two");      }} public class TestClass{      public static void main(String args[]){            MyClass obj = new MyClass();            obj.myMethod();      }}

one one two
two one one
None of these
Compilation Error
one Exception

ANSWER DOWNLOAD EXAMIANS APP