What's the output of the following code: int a = 5; while(a > 3){ System.out.print(a--); }
Correct Answer: 5 4
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Output of the given program? import java.io.*; public class Test86 { public static void main(String[] args) throws ClassNotFoundException, IOException { ByteArrayOutputStream bOut = new ByteArrayOutputStream(); ObjectOutputStream objStrm = new ObjectOutputStream(bOut); Beta b = new Beta() {{ a=2; b=3; }}; objStrm.writeObject(b); ObjectInputStream objInStrm = new ObjectInputStream(new ByteArrayInputStream(bOut.toByteArray())); System.out.println(objInStrm.readObject().toString()); } } class Alpha { public int a; public transient int b; } class Beta extends Alpha implements Serializable { public String toString() { return String.valueOf(a) + String.valueOf(b); } }
Which layout class would you use to lay out components from left to right?
Which Java EE framework is used to create REST web services?
Which term refers to an application's ability to execute concurrent processes in a timely manner?
Output of the given program? public class Test102 { public static void main(String[] args) { String s = 'string102'; String t = 'string' + (9 * s.length() + 3); String u = 'string' + 102; System.out.println( (s==t) + '-' + (s==u) ); } }
JDBC technology-based drivers generally fit into how many categories?
The JDBC API is what allows access to a data source from a Java middle tier?
Microsoft has introduced UDA as an umbrella term that covers?
In Which type may optionally have a custom mapping to a class in the Java programming language,A custom mapping consists of a class that implements the interface SQLData and an entry in a java.util.Map object?
Which method is used for retrieving streams of both ASCII and Unicode characters is new in the JDBC 2.0 core API?