explain System.out.println

Answer Posted / indranil singha

class Indranil{
void prin(){
System.out.println("Indra");
}

}
class Indra{
static Indranil ob=new Abc();
}
class Test{
public static void main(String args[]){
Indra.ob.prin();
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between process and thread?

607


What is difference between static class and normal class?

533


What about member inner classes?

632


Where is the find and replace?

535


Describe the syntax of multiple inheritance? When do we use such an inheritance?

588






Is a method a procedure?

559


What are the object and class classes used for?

564


Can we declare a constructor as final?

677


Does garbage collection occur in permanent generation space in jvm?

611


What does %4d mean in java?

843


What is the final variable?

583


What is the base class of all classes?

571


What is the java idl system?

585


What are the differences between string, stringbuffer and stringbuilder?

528


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

627