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
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
Can we create an instance of final class in another class?
Anonymous Quiz
51%
yes
49%
no
πŸ‘9❀1πŸ‘Ž1πŸ‘1
Can we mark a block final in Java?
Anonymous Quiz
71%
yes
29%
no
πŸ‘3❀1😁1
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

Click on below link to subscribe

https://tinyurl.com/dzrt4f7d

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

What is the file name extension of a Java source program?
Anonymous Quiz
2%
.j
1%
.ja
94%
.java
3%
.jax
πŸ‘4
πŸ€”4πŸ‘2❀1
#Quiz_Java (Question - 67) 

Which is a reserved word in the Java programming language?
Anonymous Quiz
31%
method
21%
native
19%
reference
28%
array
πŸ‘4πŸ₯°1πŸ‘1
Forwarded from TechShiksha by Badkul Technology (admin)
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

Click on below link to subscribe

https://tinyurl.com/dzrt4f7d

Discuss doubts in @tcs_infosys_accenture
πŸ₯°4
#Quiz_C (Question - 70)

Choose a right statement. int a = 10 + 4.867;
Anonymous Quiz
6%
a = 10
28%
a = 14.867
29%
a = 14
37%
compiler error
πŸ‘1