ru
Feedback
EvoNext

EvoNext

Открыть в Telegram

Hi, I’m Biruk! Software Engineer bridging the gap between Full-Stack Development (Frontend & Backend), Server Environments, Computer Networks, and AI-driven Digital Art. Beyond Telegram, I love sharing my technical insights & build updates.

Больше
1 619
Подписчики
-724 часа
-87 дней
-4230 дней
Архив постов
EvoNext
1 619
public class OperatorPrecedence { public static void main(String[] args) { int a = 7 * 3 + 24 / 3 - 5; int b = (7 * 3) + (24 / 3) - 5; System.out.print(a + ", " + b); } }
Anonymous voting

EvoNext
1 619
public class OperatorPrecedence { public static void main(String[] args) { int a = 7 * 3 + 24 / 3 - 5; int b = (7 * 3) + (24 / 3) - 5; System.out.print(a + ", " + b); } }
Anonymous voting

EvoNext
1 619
LESSON 16: Java Operator Precedence > Operator precedence determines the order in which the operators in an expression are evaluated. > the operator with the highest precedence is operated first. > the multiplication is performed before subtraction > Example: Operator precedence class Precedence { public static void main(String[] args) { int a = 10, b = 5, c = 1, result; result = a-++c-++b; System.out.println(result); } } ‼️What will be the output of the above example❓

EvoNext
1 619

EvoNext
1 619
sticker.webp0.65 KB

EvoNext
1 619
If you want to get quizzes for DATABASE, join this channel https://t.me/Mylovelychanne

EvoNext
1 619
sticker.webp0.08 KB

EvoNext
1 619
+3
C++ From The Ground Up, 3rd Edition (2003).pdf2.34 MB

EvoNext
1 619
📝👌🏻💻💻

EvoNext
1 619
Qm: length() method is used to;-
Anonymous voting

EvoNext
1 619
LESSON 15: 📁File Class in java🗂 🔗The File class is an abstract representation of file and directory pathname. A pathname can be either absolute or relative. 📝Once you have File object in hand, then there is a list of helper methods which can be used to manipulate the files. Eg: public String getName() public String getParent() public File getParentFile() public String getPath() public boolean isAbsolute() ... and etc. import java.io.*; public class LearnTcode { public static void main(String[] args) { try { File file = new File("learnTocode.txt"); if (file.createNewFile()) { System.out.println("Join our channel"); } else { System.out.println("File already exists."); } } catch (IOException e) { e.printStackTrace(); } } } //output is: Join our channel

EvoNext
1 619
💻

EvoNext
1 619
Q2:Which of the following can't be a member of an interface?
Anonymous voting

EvoNext
1 619
What will be the output of the following program? public class King { public static void main(String[] args) { King k = new King(); Elephant e = k.new Elephant(); System.out.print("Output = "); System.out.print(e.step2(2, 3)); } interface Queen { float step2(int low, int high); } interface Pawn { float step3(int a, int b, int c); } abstract class Knight implements Queen, Pawn { } class Elephant implements Queen { public float step2(int x, int y) { return 2; } } } //

EvoNext
1 619
Q!: Which two of the following are legal declarations for non-nested interfaces?
Anonymous voting

EvoNext
1 619
LESSON 14: ABSTRACTION and INTERFACES 🔱 Abstraction is the property by virtue of which only the essential details are displa
LESSON 14: ABSTRACTION and INTERFACES 🔱 Abstraction is the property by virtue of which only the essential details are displayed to the user. The trivial or the non-essential units are not displayed to the user. Ex: A car is viewed as a car rather than its individual components ✳️An Interface in Java programming language is defined as an abstract type used to specify the behavior of a class. An interface in Java is a blueprint of a class. A Java interface contains static constants and abstract methods. ⚜️Why do we use an Interface?✅ > It is used to achieve total abstraction. Since java does not support multiple inheritances in the case of class, by using an interface it can achieve multiple inheritances. > It is also used to achieve loose coupling. > Interfaces are used to implement abstraction. So the question arises why use interfaces when we have abstract classes?

EvoNext
1 619
The Question has a mistake. the Answer is: protected and public

EvoNext
1 619
Qm: which access modifier can be used to access different packages sub-classes created using inheritance?
Anonymous voting

EvoNext
1 619
Qs: In java , which key word is used to show inheritance in a class?
Anonymous voting

EvoNext
1 619
LESSON 13: INHERITANCE ⚜️Inheritance is one of the basic concept in object orientation in which a new class is created by absorbing an existing class’s members and embellishing them with new or modified capabilities. ✅ The existing class is called the superclass, and the new class is the subclass. Syntax for inheritance class SubClassName extends SuperClassName{}; Why And When To Use "Inheritance"? - It is useful for code reusability: reuse attributes and methods of an existing class when you create a new class. Let's explore by using sample code:- class Vehicle { protected String brand = "Ford"; // Vehicle attribute public void honk() { // Vehicle method System.out.println("Tuut, tuut!"); } } class Car extends Vehicle { private String modelName = "Mustang"; // Car attribute public static void main(String[] args) { // Create a myCar object Car myCar = new Car(); // Call the honk() method (from the Vehicle class) on the myCar object myCar.honk(); // Display the value of the brand attribute (from the Vehicle class) and the value of the modelName from the Car class System.out.println(myCar.brand + " " + myCar.modelName); } } "thanks all!🙏"