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
Any experienced React developers here ? reply to this post
Which SOLID principle suggests that a class should be open for extension but closed for modification?
Anonymous Quiz
25%
Encapsulation
17%
Polymorphism
25%
Abstraction
33%
Open/Closed Principle
πŸ‘3πŸ‘1
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