public class Test { static boolean XYZ(char a) { System.out.print(a); return true; } public static void main(String args[]) { int i=0; for(XYZ(\'P\'); XYZ(\'Q\')&&(i<2); XYZ(\'R\')) { i++; XYZ(\'S\'); } } }

public class Test { static boolean XYZ(char a) { System.out.print(a); return true; } public static void main(String args[]) { int i=0; for(XYZ(\'P\'); XYZ(\'Q\')&&(i<2); XYZ(\'R\')) { i++; XYZ(\'S\'); } } }

PQSRQSRQ

By:javeed
Date:2003-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher