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
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
we try to bring lot of content, with great effort. Please subscribe to our youtube channel as token of appreciation of our work. Below is the link to our youtube channel.

https://www.youtube.com/c/frbjava
πŸ‘1
#Quiz_C (Question - 16)

An array elements are always stored in ________ memory locations.
Anonymous Quiz
64%
Sequential​​​
15%
Random
18%
Sequential and Random​​
4%
None of the above
πŸ‘3πŸ”₯2
πŸ‘4πŸ‘1
How to declare a constant in Java?
Anonymous Quiz
46%
using final
37%
using const
17%
using static
πŸ”₯4
Why a constructor cannot be final in Java?

Ans: If a method is marked as final it means we do not want any class to override it. As per Java Language Specification, a constructor cannot be overridden. So, there is no use in declaring a constructor as final.
πŸ‘6
Can you change the value of a variable declared as "final"?
Anonymous Quiz
33%
Yes
67%
No
πŸ‘2
Newly Joined Members subscribe to our channel to learn programming and crack written exams.


https://tinyurl.com/dzrt4f7d

Discuss doubts in @tcs_infosys_accenture
πŸ‘1
#Quiz_Java (Question - 44)

What is the original name of Java Programming language?
Anonymous Quiz
7%
C++
15%
J++
74%
OAK
4%
TEAK
πŸ‘3