All Topics
Topic26 questions

1. Introduction To JavaQuestions & Answers

Practice 26 1. Introduction To Java questions with detailed answers and explanations. Tap any question below to study the full solution.

1. Introduction To Java question list

The ________________ statement causes the program execution to stop and JVM to shut down.Using Java we can develop ___________________.The break statement cannot be present for _____________ construct.A continue statement makes the execution jump to ______________.What will be the output of the program? public class Sample { final static short a = 2; public static int b = 0; public static voi…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…Identify the features of java.JRE comprises of ___________ and ___________.The main method in java should ___________.Java is _____________________________.JVM is independent of OSTo compile, debug and execute a program written in java, _______________ is required.How was Java initially named?State true or false. Java is a structured programming language.Who is the father of Java?What is Polymorphism?The break statement causes an exit ___________What is the output of this program? 1. class Crivitch { 2. public static void main(String [] args) { 3. int x = 10; 4. 5. do { } w…Fill in the appropriate data type for the Java switch statement: switch (____) { case value1: ... case value2: ... default: System…What value is stored in i at the end of this loop? for(int i =1;i<=10;i++)What is the output of this program? class selection_statements { public static void main(String args[]) { int var1 = 5; int var2 =…What will happen when the following code is compiled and run in Java 1.8? int i = 1, j = -1; switch(i) switch (i) { case 0, 1: j =…What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); …What 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. …French curly braces { } is a must if the for loop executes more than one statement. State true or false.Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?

Practice more topics

PrimerPrep has independently reviewed practice questions and coding exercises — all free.