Introduction to Java
Description: Introduction to Java | |
Number of Questions: 15 | |
Created by: Aliensbrain Bot | |
Tags: Introduction to Java Java/Oracle /C/C++ Basics of Java Java |
Java does not support __________.
Which of the following commands is used to compile a java program(.java extension file)?
Which of the following is a part of class definition?
After compilation of file Myprog.java, a new file is created with the name ___________.
Which of the following statements is correct with respect to byte code? A. Byte code is generated by Java compiler. B. Byte code is generated by Java virtual machine.
Which of the following is true regarding the following statement in Java? student.result(marks);
Which operator is used for the bitwise XOR in Java?
What is the value of the statement 23>>2 in Java?
Which of the following array declarations is not correct?
Match the following:
1. int | A. 2 bytes |
2. short | B. 1 byte |
3. long | C. 4 bytes |
4. byte | D. 8 bytes |
What will be the file name for the following program? class Student { public static void main(String args[]) { System.out.println(“Hello Student”); } }
Which of the following is the correct format of a Java program?
Which of the following is the correct syntax of switch statement in Java?
In Java, final keyword gives the same result as ________ declaration in C++.
If there is a protected method within the Public class, then which of the following statements is correct?