<< < Page 9 of 11 > >> |
From: ezhilmathi | Reply 161 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 4 |
the ans is:
float pie = 3.142 ;
Posted at: Wed Dec 1 16:57:58 2010 (GMT)
|
From: ezhilmathi | Reply 162 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 6 |
formal parameters appear in the function definition statement while actual
parameters appear in the function call statement .
Posted at: Wed Dec 1 17:01:50 2010 (GMT)
|
From: ezhilmathi | Reply 163 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 7 |
v need constructor because it is constructor that initialises ,the objects
created,with legal initial values
Posted at: Wed Dec 1 17:04:36 2010 (GMT)
|
From: ezhilmathi | Reply 164 of 205 | Reply | View replies (1)
|
Subject: Contributed Answer/Explanation to Q. 9 |
math package is invoked by default
Posted at: Wed Dec 1 17:06:46 2010 (GMT)
|
From: ezhilmathi | Reply 165 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 9 |
lang package is invoked by default
Posted at: Wed Dec 1 17:07:19 2010 (GMT)
|
From: ezhilmathi | Reply 166 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 10 |
import is the keyword which is used when v want to use classes of a package
Posted at: Wed Dec 1 17:10:12 2010 (GMT)
|
From: ezhilmathi | Reply 167 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 11 |
math class. eg- math.sqrt( )
Posted at: Wed Dec 1 17:11:50 2010 (GMT)
|
From: ezhilmathi | Reply 168 of 205 | Reply | View replies (2)
|
Subject: Contributed Answer/Explanation to Q. 13 |
double a = 0.05 - 2 * math.pow(y,3) / x-y
Posted at: Wed Dec 1 17:16:43 2010 (GMT)
|
From: ezhilmathi | Reply 169 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 13 |
double a = (0.05 - 2 * math.pow(y,3)) / (x-y);
Posted at: Wed Dec 1 17:18:06 2010 (GMT)
|
From: ezhilmathi | Reply 170 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 14 |
int tax = (income<=10000) ? 0 : 12;
Posted at: Wed Dec 1 17:20:20 2010 (GMT)
|
From: ezhilmathi | Reply 171 of 205 | Reply | View replies (1)
|
Subject: Contributed Answer/Explanation to Q. 15 |
int n = 275 ; String number = Integer.parseInt (n);
Posted at: Wed Dec 1 17:23:21 2010 (GMT)
|
From: ezhilmathi | Reply 172 of 205 | Reply | View replies (1)
|
Subject: Contributed Answer/Explanation to Q. 16 |
string m ;
Posted at: Wed Dec 1 17:24:26 2010 (GMT)
|
From: ezhilmathi | Reply 173 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 16 |
string m ; int a; m = Integer.parseInt (a);
Posted at: Wed Dec 1 17:26:45 2010 (GMT)
|
From: ezhilmathi | Reply 174 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 13 |
double a = (0.05 - 2 * math.pow(y,3)) / (x-y);
Posted at: Wed Dec 1 17:27:26 2010 (GMT)
|
From: ezhilmathi | Reply 175 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 15 |
int n = 275 ; String number = Integer.toString (n);
Posted at: Wed Dec 1 17:28:20 2010 (GMT)
|
From: ezhilmathi | Reply 176 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 18 |
ven v declare a function to be of void type , it means that the function
doesnot return anything.
Posted at: Wed Dec 1 17:31:09 2010 (GMT)
|
From: ezhilmathi | Reply 177 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 19 |
the very first one vil only b executed
because after executing the 1st one the program is terminated.
Posted at: Wed Dec 1 17:33:21 2010 (GMT)
|
From: ezhilmathi | Reply 178 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 20 |
polymorphism
Posted at: Wed Dec 1 17:34:23 2010 (GMT)
|
From: ezhilmathi | Reply 179 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 21 |
o/p:-
four : 42
four : 4
Posted at: Wed Dec 1 17:36:15 2010 (GMT)
|
From: ezhilmathi | Reply 180 of 205 | Reply | |
Subject: Contributed Answer/Explanation to Q. 22 |
O/P:-
Hi equals Hi -> true
Hi equals there -> false
Hi equals HI -> false
Hi EqualIgnoreCase HI -> true
Posted at: Wed Dec 1 17:41:19 2010 (GMT)
|
<< < Page 9 of 11 > >> |