JAVA CODE SNIPPET-8

JAVA CODE SNIPPET-8
package techyield;
/**
 * @author satyanarayana gokavarapu
 *
 */
public class Test{

 public static void main(String[] args) {
  // TODO Auto-generated method stub
  Test object = new Test();
  int value=4;
  object.init(value,value);
 }
 void init( Long a,Long b)
 {
  System.out.println("Test class Long,Long method.");
 }
 void init(int... a)
 {
  System.out.println("Test class varargs method.");
 }
 void init( long a,long b)
 {
  System.out.println("Test class long,long method.");
 }
}

Select an answer





Please comment below if you have any doubts.

No comments:

Post a Comment

Featured Post

H1B Visa Stamping at US Consulate

  H1B Visa Stamping at US Consulate If you are outside of the US, you need to apply for US Visa at a US Consulate or a US Embassy and get H1...