- void examveda() {} throws IOException
- void examveda() throws IOException{}
- void examveda() throw IOException{}
- void examveda(void) throws IOException{}
- examveda() throws IOException{}
Answer: Option 2 Object will be created each time whenever we use new keyword. So, 2 object will be created simply for the first two line and matter is with...
1 Answers 2 viewsAnswer: Option 1 Overriding in Java simply means that the particular method would be called based on the run time type of the object and not on the compile time...
1 Answers 1 viewsAnswer: Option 2 Let'
1 Answers 4 viewsAnswer: Option 3 The program will compile and execute successfully as you can declare methods with same name in an interface and the method of either interface can be used,...
1 Answers 1 viewsAnswer: Option 3 We cannot reduce the visibility of the inherited method from super class. If the overridden or hidden method is public, then the overriding or hiding method must...
1 Answers 6 viewsAnswer: Option 1 The reservation of jobs in the private sector too would surely increase opportunities for weaker sections to improve their economic plight. Thus, argument I is strong enough....
1 Answers 1 viewsAnswer: Option 4 Taking care of the parents is a moral duty of the children and cannot be thrust upon them legally, nor such a compulsion can ensure good care...
1 Answers 1 viewsAnswer: Option 4 'Hire and fire policy' implies 'taking up the performing employees and discarding the non-performing ones'. Clearly, such a policy would stand out to encourage employees to work...
1 Answers 1 views