1. what do u mean by reusing the code ? do u think oops provides the ways to reuse code ? write a simple code if you think so ?
2. what will be the output of the following code ?
2. what will be the output of the following code ?
public class callkr_parents{
static char A='A';
}
class callkr_child extends callkr_parents{
public static void main(String args[]){
int x=A;
System.out.println(A);
}
}
3. what is polymorphism in java ? Do you know 'pintln()' method is best example of polymorphism?
4. which args is wrong for calling println method in below
Println (20); S.o.println
(new Temp());
Println ("callkr"); S.o.println
(null);
Println (10.0f); S.o.println
(10.0);
5. Why 'new' is called as operator in java as we know operator are (+,-,*.......etc). Justify your answer?
6. Do u know other operator like new?
7. What is heap memory and buffer in java and where we can find them ?
8. what is variable and reference variable ?
9. what we hold in reference variable ;
10.what is difference between reference id and reference variable and this in java ?
No comments:
Post a Comment