EvoNext
1.79K subscribers
272 photos
16 videos
266 files
484 links
Download Telegram
Q2:Which of the following can't be a member of an interface?
Anonymous Quiz
24%
constructors
25%
static methods
30%
non static data members
21%
All of these
πŸ‘2πŸ‘Ž1πŸ‘1😒1
EvoNext pinned a photo
EvoNext
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…
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
❀2πŸ₯°1
πŸ“πŸ‘ŒπŸ»πŸ’»πŸ’»
❀3
EvoNext
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…
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❓

For any suggestion : use our bot_ Learn+To+Code_bot
πŸ‘2πŸ₯°2πŸ”₯1
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 Quiz
6%
33,33
14%
33,24
56%
24,24
17%
compiler error
7%
Runtime error
πŸ‘5πŸ‘Ž1πŸ₯°1
β­οΈπŸŒ™ Eid Mubarak β­οΈπŸŒ™
----------------------
To All Muslim Members of our Family, LEARN TO CODE wishes you a Happy Eid Al-Adha (Arefa)…!!
መልካም α‹¨αŠ’α‹΅ አል αŠ α‹΅αˆ€ α‰ αŠ αˆ...!!
AYYAANA GAARII..!!
πŸ‘4β˜ƒ1πŸ‘1πŸ₯°1
EvoNext
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:…
LESSON 17: EXCEPTION HANDLING IN JAVA

πŸ–‡ Exception handling is one of the most important feature of java programming that allows us to handle the runtime errors caused by exceptions.

βœ‚οΈAn Exception is an unwanted event that interrupts the normal flow of the program.

Java try and catch

The try statement allows you to define a block of code to be tested for errors while it is being executed.

The catch statement allows you to define a block of code to be executed, if an error occurs in the try block.



public class Main {
public static void main(String[ ] args) {
try {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[10]);//
this num is not found in the array
} catch (Exception e) {
System.out.println("Something went wrong.");
}
}
}

THERE ARE 2 PRIMARY EXCEPTION TYPES:
1️⃣ Checked Exception
2️⃣ Unchecked Exception

Contact
_bot Β» https://t.me/LearnToCode_bot
Q1:When an improper or erroneous argument is supplied to a method, β€”β€”β€” exception occurs.
Anonymous Quiz
16%
ArrayIndexOutOfBoundsException
8%
NullPointerException
66%
IllegalArgumentException
10%
NumberFormatException
πŸ‘1
Q2:When you try to retrieve an object using a reference variable whose current value is empty, you'll get__________ exception.
Anonymous Quiz
66%
NullPointerException
12%
ArrayIndexOutOfBoundsException
16%
IllegalArgumentException
6%
NumberFormatException
πŸ‘1πŸ€”1
EvoNext pinned Β«LESSON 17: EXCEPTION HANDLING IN JAVA πŸ–‡ Exception handling is one of the most important feature of java programming that allows us to handle the runtime errors caused by exceptions. βœ‚οΈAn Exception is an unwanted event that interrupts the normal flow…»
Introduction-to-Algorithms-Third-Edition-booksfree.org_.pdf
5.4 MB
πŸ’»Introduction to Algorithms- MIT
πŸ‘1
Forwarded from Back End Developemnt
From the languages given, which one is back-end coding language
Anonymous Quiz
38%
Javascript
8%
React
31%
SQL
10%
JQuery
13%
All
πŸ‘4πŸ‘1
Forwarded from Front End Development
AWT and SWING.pdf
1.4 MB
GUI short notes for Java OnlyπŸ“πŸ’»
πŸ‘2