TechShiksha by Badkul Technology
5.78K subscribers
135 photos
238 files
617 links
https://www.youtube.com/@TechShikshaBT

Learn Java programming for free
Free hand written notes
Free ebooks
Free assignment support
Paid assignment support
Download Telegram
Which one of the following can be inherited in Java?
Anonymous Quiz
22%
Enum
16%
Final classes
34%
Constructors
28%
None of the above
πŸ‘7😈2
If a thread is defined in a public class in Java, "public class Java implements Runnable", how can we call this thread within another class?
Anonymous Quiz
29%
Thread thread = new Thread(new Java());
12%
Thread thread = new Java();
21%
Thread thread = new Thread(Java);
28%
All of the above
10%
None of the above
πŸ‘2❀1
Java Code:


public class MainExample {
   
    public static void main(String args[]) {

        String str = "6";

        long l = Long.parseLong(str);

        l = 4; // Line x
       
        System.out.println(l);
    }
}
What is the output of the code snippet above?
Anonymous Quiz
22%
6
50%
4
28%
The code does not compile because of Line x.
πŸ‘2πŸ‘1
Java Code:


public class MainExample {

public static void main(String args []) {

long value = 2000;

do {

System.out.print("The result: " + value);

}

while (value < 2000);

}

}
πŸ‘5❀1
πŸ‘6❀1
❀5πŸ‘3
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
πŸ‘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
πŸ‘1
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