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
#Quiz_Java (Question - 96)

Which of the following type is immutable?
Anonymous Quiz
10%
char
23%
boolean
62%
String
5%
float
😁4❀1πŸ‘1
Forwarded from TechShiksha by Badkul Technology (admin)
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @tcs_infosys_accenture
πŸ‘1
We are looking for someone, who can help us creating ppts and edit videos. If you are interested please reply to this message.
#Quiz_Java (Question - 6)

What if I write static public void instead of public static void?
Anonymous Quiz
46%
Program compiles and runs properly.
27%
Program Doesn't compile and run
21%
Error
6%
None Of The Above
πŸ‘5❀1
#Quiz_Java (Question - 5)

Is Java platform Independent ???
Anonymous Quiz
9%
No
88%
Yes
2%
I don't know ???
πŸ‘8❀3πŸ‘2πŸ™ˆ2
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @tcs_infosys_accenture
πŸ‘8❀2πŸ₯°1
Which of these method waits for the thread to terminate?
Anonymous Quiz
28%
stop
13%
join
10%
alive
31%
wait
18%
sleep
πŸ‘3πŸ‘3πŸ₯°1
ArrayList list = new ArrayList(); list.add("A"); list.ensureCapacity(3); System.out.println(list.size());
Anonymous Quiz
17%
0
26%
1
46%
3
10%
2
πŸ‘2
What is the default value of a local variable in Java?
Anonymous Quiz
32%
0
43%
null
18%
undefined
7%
not set
πŸ‘8πŸ‘2πŸ‘Ž1
Which of these keywords can be used to prevent inheritance of a class ?
Anonymous Quiz
46%
final
11%
constant
30%
super
5%
stop
8%
class
πŸ‘3πŸ‘1
Shall we start creating videos to explain these polls with code?
Anonymous Poll
91%
Yes
9%
No
πŸ‘9😁1
#Quiz_Java (Question - 13)

What’s the base class in Java from which all classes are derived?
Anonymous Quiz
32%
java.lang.object
28%
java.util.object
12%
java.lang.base
28%
Both A and C
πŸ‘3πŸ₯°1
previous quiz has been deleted, as wrong option was marked as correct.

Correct answer was Equal
what are static blocks and static initalizers in Java ?
answer :
Static blocks or static initializers are used to initalize static fields in java. we declare static blocks when we
want to intialize static fields in our class. Static blocks gets executed exactly once when the class is loaded
. Static blocks are executed even before the constructors are executed.
πŸ‘8
How to call one constructor from the other constructor ?
answer :
With in the same class if we want to call one constructor from other we use this() method. Based on the
number of parameters we pass appropriate this() method is called.
Restrictions for using this method :
1) this must be the first statement in the constructor
2)we cannot use two this() methods in the constructor
❀4πŸ‘1
which access modifier is the most strict(provides least visibility) in java
Anonymous Quiz
21%
public
51%
private
8%
default
20%
protected
πŸ‘4