Advertisements
Advertisements
प्रश्न
Write the output of the following program code:
char ch ;
int x=97;
do
{
ch=(char) x;
System.out.print(ch + “ ” );
if(x%10 == 0)
break;
++x;
}while(x<=100);
एक शब्द/वाक्यांश उत्तर
उत्तर
output: a b c d
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
What is a parameterized constructor?
Name the two types of constructors.
Consider the following program segment and answer the questions below:
class calculate
{
int a;double b;
calculate()
{
a=0;
b=0.0;
}
calculate(int x, double y)
{
a=x;
b=y;
}
void sum()
{
System.out.println(a*b);
}}
Name the type of constructors used in the above program segment.