dasari mahesh


{ City } hyd
< Country > india
* Profession * faculty
User No # 79167
Total Questions Posted # 1
Total Answers Posted # 6

Total Answers Posted for My Questions # 3
Total Views for My Questions # 4120

Users Marked my Answers as Correct # 4
Users Marked my Answers as Wrong # 6
Questions / { dasari mahesh }
Questions Answers Category Views Company eMail

string is a class or data type in java?

3 OOPS 4120




Answers / { dasari mahesh }

Question { Wipro, 90694 }

main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}


Answer

x=55
y=57

Is This Answer Correct ?    0 Yes 0 No

Question { Wipro, 5151 }

i heard that JVM internally contains pointers...is this true?


Answer

no

Is This Answer Correct ?    0 Yes 4 No


Question { 7871 }

what is meant by Encapsulation?Explain with an example?


Answer

combined together
ex:tablet

Is This Answer Correct ?    1 Yes 1 No

Question { Tech Mahindra, 9470 }

What is constructor


Answer

constructor is similar to a method.
*constructor name ,class name should be same
*constructor have a parameters
*does not return any value

*

Is This Answer Correct ?    1 Yes 0 No

Question { 2588 }

how can program polindrome using java


Answer

import java.lang.*;
class Plindrome
{
public static void main(String arg[])
{
int n=121,m;
int rev,rem;
rev=0;m=n;
while(n>0)
{
rem=n%10;
rev=rev*10+rem;
n=n/10;
}
if(m==rev)
{
System.out.println("palindrome",+rev);
}
else
{
System.out.println("not palindrome",+rev);
}
}
}

Is This Answer Correct ?    2 Yes 0 No

Question { 4979 }

What is Function Pointer? Explain with example?


Answer

pointer is a variable witch can strore address of another
variable

Is This Answer Correct ?    0 Yes 1 No