Skip to content

Commit f6b3002

Browse files
authored
Add files via upload
1 parent 6994723 commit f6b3002

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class A
2+
{
3+
int i;
4+
float f;
5+
boolean b;
6+
double d;
7+
long l;
8+
char c;
9+
String s;
10+
short st;
11+
byte bt;
12+
}
13+
class DefaultConstructor {
14+
public static void main(String[] args) {
15+
A obj=new A();
16+
System.out.println(obj.i);
17+
System.out.println(obj.f);
18+
System.out.println(obj.b);
19+
System.out.println(obj.d);
20+
System.out.println(obj.l);
21+
System.out.println(obj.c);
22+
System.out.println(obj.s);
23+
System.out.println(obj.st);
24+
System.out.println(obj.bt);
25+
26+
}
27+
28+
}

0 commit comments

Comments
 (0)