Table of Contents
Key Features of Java: A Comprehensive Guide
🔒 Please log in to unlock this course.
ONLINE CLASSES BY RUMMAN ANSARI
Stuck on a Java Program? Ask Your Doubt Directly
Book a one-to-one session to get your questions answered, or message on WhatsApp for live online classes in Java Programming.
- 1:1 Mentoring
- Doubt Clearing
- Interview Preparation
MCQ Section
MCQ 1
When is the object created with new keyword?
Locked. Enroll to open this MCQ.
MCQ 2
Number of primitive data types in Java are?
Locked. Enroll to open this MCQ.
MCQ 3
Identify the incorrect Java feature. .
Locked. Enroll to open this MCQ.
MCQ 4
What will be the output of the program ? public class Test { public static void main(String []…
Locked. Enroll to open this MCQ.
MCQ 5
Which three are legal array declarations? int [] myScores []; char [] myChars; int [6] myScores;…
Locked. Enroll to open this MCQ.
MCQ 6
Which one of the following will declare an array and initialize it with five numbers?
Locked. Enroll to open this MCQ.
MCQ 7
Which is a reserved word in the Java programming language?
Locked. Enroll to open this MCQ.
MCQ 8
Which will legally declare, construct, and initialize an array?
Locked. Enroll to open this MCQ.
MCQ 9
Size of int in Java is
Locked. Enroll to open this MCQ.
MCQ 10
Java is a _________ language.
Locked. Enroll to open this MCQ.
MCQ 11
What will be the output of the program? public class X { public static void main(String [] args) {…
Locked. Enroll to open this MCQ.
MCQ 12
What will be the output of the program? public class CommandArgsTwo { public static void…
Locked. Enroll to open this MCQ.
MCQ 13
What will be the output of the program? public class CommandArgs { public static void main(String…
Locked. Enroll to open this MCQ.
MCQ 14
In the given program, how many lines of output will be produced? public class Test { public static…
Locked. Enroll to open this MCQ.
MCQ 15
Which four options describe the correct default values for array elements of the types indicated?…
Locked. Enroll to open this MCQ.
MCQ 16
What will be the output of the program? public class TestDogs { public static void main(String []…
Locked. Enroll to open this MCQ.
MCQ 17
What will be the output of the program? public class CommandArgsThree { public static void…
Locked. Enroll to open this MCQ.
MCQ 18
Which three are valid declarations of a char? char c1 = 064770; char c2 = 'face'; char c3 = 0xbeef;…
Locked. Enroll to open this MCQ.
MCQ 19
public interface Foo { int k = 4; /* Line 3 */ } Which three piece of codes are equivalent to line…
Locked. Enroll to open this MCQ.
MCQ 20
What is the numerical range of a char?
Locked. Enroll to open this MCQ.
MCQ 21
Which is a valid keyword in java?
Locked. Enroll to open this MCQ.
MCQ 22
Which three are valid declarations of a float? float f1 = -343; float f2 = 3.14; float f3 =…
Locked. Enroll to open this MCQ.
MCQ 23
The implicit return type of a constructor is
Locked. Enroll to open this MCQ.
MCQ 24
Which one of these lists contains only Java programming language keywords?
Locked. Enroll to open this MCQ.
MCQ 25
public class F0091 { public void main( String[] args ) { System.out.println( "Hello" + args[0] ); }…
Locked. Enroll to open this MCQ.
MCQ 26
Which is a valid declarations of a String?
Locked. Enroll to open this MCQ.
MCQ 27
Which one is a valid declaration of a boolean?
Locked. Enroll to open this MCQ.
MCQ 28
Which is the valid declarations within an interface definition?
Locked. Enroll to open this MCQ.
Get Java Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.