What would be the behaviour if one parameterized constructor is explicitly defined
Anonymous Quiz
25%
Runtime error
39%
Compilation succeed but at time of creating object using default constructor it compilation error
20%
Compilation succeeds
15%
Compilation error
السلام عليكم وش رايكم بإضافه جديده للبوت @Altmemy_bot أضيف له كل الأساسيات مجرد ما الشخص يكتب مثلا while يعطيه كل التفاصيل مع الامثله 😍😍😍😍
Anonymous Poll
93%
👍
7%
👎
🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳
أخيرا اول بوت تلجرام برمجه تم اضافه فيه اغلب الاجزاء المتعلقه بلغه جافا
كما موضح بالصورة قم بكتابه اسم البوت بهذي الطريقه @Altmemy_bot ويتم عرض قائمه بالاجزاء التي تم شرحها بواسطه البوت كما هو موضح بالصوره وعند إختيار جزئيه محددة يتم إرسال
1:تعريف الجزئيه
2:ملاحظه
3:الشكل العام
4:مثال
أخيرا اول بوت تلجرام برمجه تم اضافه فيه اغلب الاجزاء المتعلقه بلغه جافا
كما موضح بالصورة قم بكتابه اسم البوت بهذي الطريقه @Altmemy_bot ويتم عرض قائمه بالاجزاء التي تم شرحها بواسطه البوت كما هو موضح بالصوره وعند إختيار جزئيه محددة يتم إرسال
1:تعريف الجزئيه
2:ملاحظه
3:الشكل العام
4:مثال
🔥7🤩5🎉2👍1
جافا Java
🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳 أخيرا اول بوت تلجرام برمجه تم اضافه فيه اغلب الاجزاء المتعلقه بلغه جافا كما موضح بالصورة قم بكتابه اسم البوت بهذي الطريقه @Altmemy_bot ويتم عرض قائمه بالاجزاء التي تم شرحها بواسطه البوت كما هو موضح بالصوره وعند إختيار جزئيه محددة يتم إرسال 1:تعريف…
*If Statement*
The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false.
There are three parts to the if-else block: if, else if, and else.
==========================
*notes*
booleanExpression(s) are those that result in either a true or false output. They are created using comparing operators (==, >, <, >=, <=, !=).
There can also be multiple Boolean expressions within the parentheses (booleanExpression). The Boolean expressions are connected through logical operators (&&, ||, !).
Else if statements allow for another Boolean expression check within the overall if structure. This is optional.
Else statements result in the execution of code if the if statement (and if applicable, the subsequent else if statement(s)) do not hold true.
Nested if (else) statements are also possible and are the inclusion of another (or multiple) if statements within an if statement block.
==========================
*Syntax*
if(booleanExpression) {
//Executes when booleanExpression holds true
}
else if(booleanExpression2) {
//Executes when booleanExpression2 holds true
}
else {
//Executes when neither booleanExpression nor booleanExpression2 are true
}
==========================
*Example*
if(counter >= 30) {
System.out.print("Counter is greater than or equal to 30.");
}
else if (counter ==20) {
System.out.print("Counter is at 20.");
counter++;
}
else {
counter++;
}
The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false.
There are three parts to the if-else block: if, else if, and else.
==========================
*notes*
booleanExpression(s) are those that result in either a true or false output. They are created using comparing operators (==, >, <, >=, <=, !=).
There can also be multiple Boolean expressions within the parentheses (booleanExpression). The Boolean expressions are connected through logical operators (&&, ||, !).
Else if statements allow for another Boolean expression check within the overall if structure. This is optional.
Else statements result in the execution of code if the if statement (and if applicable, the subsequent else if statement(s)) do not hold true.
Nested if (else) statements are also possible and are the inclusion of another (or multiple) if statements within an if statement block.
==========================
*Syntax*
if(booleanExpression) {
//Executes when booleanExpression holds true
}
else if(booleanExpression2) {
//Executes when booleanExpression2 holds true
}
else {
//Executes when neither booleanExpression nor booleanExpression2 are true
}
==========================
*Example*
if(counter >= 30) {
System.out.print("Counter is greater than or equal to 30.");
}
else if (counter ==20) {
System.out.print("Counter is at 20.");
counter++;
}
else {
counter++;
}
👍2
Which of these selection statements test only for equality?
#java_1
#java_1
Anonymous Quiz
29%
if
31%
switch
18%
if & switch
21%
none of the mentioned
👍2
Which of these are selection statements in Java?
#java_1
#java_1
Anonymous Quiz
19%
for()
64%
if()
7%
continue
10%
break
🎉1
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
#java_1
#java_1
Anonymous Quiz
63%
do-while
22%
while
9%
for
7%
none of the mentioned
جافا Java
Which of these selection statements test only for equality?
#java_1
#java_1
الأغلب جاوب غلط شرحت ال loop في قناتي على اليوتيوب شوفها وارجع حاول مره ثانيه🔥
https://youtu.be/JTKPd-hcHgU
https://youtu.be/JTKPd-hcHgU
YouTube
java 1 chapter 3 iteration statement
الجزء الثالث من الفصل الثالث صيغ التكرار
انضم الى قناتي على التلجرام للمزيد من الشروحات والكثير من الأسئلة لإختبار نفسك في لغة الجافا
https://t.me/learn_java_e
للتواصل معي
https://altmemy.me
انضم الى قناتي على التلجرام للمزيد من الشروحات والكثير من الأسئلة لإختبار نفسك في لغة الجافا
https://t.me/learn_java_e
للتواصل معي
https://altmemy.me
👍2