Posts

Showing posts with the label Methods

Methods interview questions and answers in java

A method represents group of statements that performs a task. Here, Task represents a calculation or processing of data or generating a report etc. This page also contains the information of the methods related interview questions and answers in java. If any one are facing more than these interview questions please share with me through "Contact me Here" gadget or drop me an email to " subbareddynallamachu@gmail.com ". Q1: How many types of methods are there in java? A: In java mainly two types of methods are there. That are,                 1. Instance methods                 2. Static methods                 3. Factory methods Q2: What are instance method? A: Instance methods are methods which act on the instance variable of the class. To call the instance methods. We should use the form: objectname.methodname(). Q3: What are static methods? A: Static meth...