-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
43 lines (36 loc) · 1004 Bytes
/
Test.java
File metadata and controls
43 lines (36 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.interview.test;
public class Test {
public static void methodOne(boolean i) {
System.out.println("i am boolean :"+i);
}
public static void methodOne(byte i) {
System.out.println("I am byte :"+i);
}
public static void methodOne(char i) {
System.out.println("I am char :"+i);
}
public static void methodOne(short i) {
System.out.println("I am short :"+i);
}
public static void methodOne(int i) {
System.out.println("I am int :"+i);
}
public static void methodOne(long i) {
System.out.println("I am long :"+i);
}
public static void methodOne(double i) {
System.out.println("I am double :"+i);
}
public static void methodOne(String str) {
System.out.println("I am String");
}
public static void methodOne(StringBuffer strbfr) {
System.out.println("I am StringBuffer ");
}
public static void methodOne(Object obj) {
System.out.println("I am Object ");
}
public static void main(String[] args) {
//Test.methodOne(null); it is ambiguous
}
}