Java Code:
public class JavaExercise {
public static void main(String args[]) {
StringBuilder sb = new StringBuilder("Java");
String str = sb.append("Channel"); // Line X
System.out.print(str);
}
}👍3😁1
What will the output of this code?
Anonymous Quiz
54%
JavaChannel
18%
Java
15%
Channel
14%
The code will not work due to the error in Line X.
👍6😁1
Which of the following structures in Java sorts the compounds randomly?
Anonymous Quiz
44%
HashSet
22%
Array
23%
ArrayList
11%
List
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
Like this post if you have already subscribed to our channel
Click on below link to subscribe
https://bit.ly/3NLjOpW
Discuss doubts in @javaforfree
Like this post if you have already subscribed to our channel
Click on below link to subscribe
https://bit.ly/3NLjOpW
Discuss doubts in @javaforfree
What is the output of the Java code snippet above?
Anonymous Quiz
38%
Invalid input, try again.
27%
Invalid input
20%
Not working
15%
The code will not compile.
👍4
Generally speaking, how do you find the Java code questions in this channel?
Anonymous Poll
29%
Easy
52%
Medium
15%
Hard
4%
So hard
🥰2🔥1👏1
What is the output of the Java code above?
Anonymous Quiz
23%
Some information about Application = The release date of Telegram Messenger: 2013
25%
Little information about Application = The release date of Telegram Messenger: 2013
22%
The code does not compile due to both Line X and Line Y.
12%
The code does not compile due to Line X.
8%
The code does not compile due to Line Y.
9%
The code will throw a runtime exception.
👍8
What is the output of the code above?
Anonymous Quiz
32%
Here is the result: t and M
48%
Here is the result: e and i
20%
The code does not compile due to the syntax error
🔥3
TechShiksha by Badkul Technology
Photo
We're sorry for the mistake in this question.
The correct one:
The correct one:
if (i2 == 0) instead of if(i1 == 0)👍4
What is the output of the Java code above?
Anonymous Quiz
18%
The code does not compile.
43%
The code throws an exception called "ArrayIndexOutOfBoundsException".
26%
16
12%
16.0
👍5😁1
Which topic of Java do you need to learn MOST? Please, vote this poll so that we can post questions which you need.
Optionally, you may select two or more options. Please select topics you need to learn 'ONLY'
Optionally, you may select two or more options. Please select topics you need to learn 'ONLY'
Anonymous Poll
42%
Inheritance
24%
Pritimive data types
26%
Assignment
51%
Try-catch and/or Thread
35%
Methods
76%
ArrayList, List, HashSet, HashMap (Collections)
41%
Interface and/or enum
25%
Operators
14%
Others (write in comment)
👍8
In Java, what is the output of the code snippet above?
Anonymous Quiz
48%
The student: Student and the student has 300 dollars.
29%
The code does not compile.
23%
The code throws an exception called "InterruptedException".
👍4
What is the output of the code above?
Anonymous Quiz
31%
The code does not compile due to Line X.
36%
The code does not compile because variables "age" and "float" are defined with protected keyword.
32%
The result: 17.75
❤1
In Java, which keyword is used to implement inheritance between classes?
Anonymous Quiz
61%
extends
27%
implements
7%
new
5%
super
👍3🥰2❤1
👍4