Complete Subject Question Bank
Using Java we can develop ___________________.
This question has been retained as-is due to its unique context.
The main method in java should ___________.
This question has been retained as-is due to its unique context.
The break statement cannot be present for _____________ construct.
This question has been retained as-is due to its unique context.
A continue statement makes the execution jump to ______________.
This question has been retained as-is due to its unique context.
Identify the features of java.
This question has been retained as-is due to its unique context.
a for loop, if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?
This question has been retained as-is due to its unique context.
JRE comprises of ___________ and ___________.
This question has been retained as-is due to its unique context.
1What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static void main(String [] args) { for (int c=0; c < 4; c++) { switch (c) { case a: System.out.print("a "); default: System.out.print("default "); case a-1: System.out.print("a-1 "); break; case a-2: System.out.print("a-2 "); } } } }
This question has been retained as-is due to its unique context.
The ________________ statement causes the program execution to stop and JVM to shut down.
This question has been retained as-is due to its unique context.
JVM is independent of OS
This question has been retained as-is due to its unique context.
To compile, debug and execute a program written in java, _______________ is required.
This question has been retained as-is due to its unique context.
State true or false. Java is a structured programming language.
This question has been retained as-is due to its unique context.
Who is the father of Java?
This question has been retained as-is due to its unique context.
What is Polymorphism?
This question has been retained as-is due to its unique context.
How was Java initially named?
This question has been retained as-is due to its unique context.
Java is _____________________________.
This question has been retained as-is due to its unique context.
1What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } while (x++ < y); 6. System.out.println(x); 7. } 8. } Which statement, inserted at line 4, produces the output 12?
This question has been retained as-is due to its unique context.
1What will be the output of the program? Given: 10. int x = 0; 11. int y = 10; 12. do { 13. y--; 14. ++x; 15. } while (x < 5); 16. System.out.print(x + "," + y); What is the result?
This question has been retained as-is due to its unique context.
1What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 = 6; if ((var2 = 1) == var1) System.out.print(var2); else System.out.print(++var2); } }
This question has been retained as-is due to its unique context.
1Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System.out.println("Hello"); }
This question has been retained as-is due to its unique context.
Based on our question bank analysis, master these concepts to score high in Java Programming.