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
๐ 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
Introduction-to-Algorithms-Third-Edition-booksfree.org_.pdf
5.4 MB
๐ปIntroduction to Algorithms- MIT
๐1
Termination of Recursive program is achieved by :___
Anonymous Poll
36%
decreasing the parameter to base case
24%
solving smaller version of the same problem
39%
recursive case equals base case
30%
All
5%
None
๐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
This method determines where an element will be displayed on the screen and its size
Anonymous Quiz
14%
setParameter
28%
setSize
44%
setBounds
14%
setMenu
which of the following is reqiured before adding textFields, labels , buttons or tool tips
Anonymous Quiz
13%
JButtons
60%
JFrame
6%
JTextArea
14%
JtextField
8%
None
Forwarded from Front End Development
which of the following correctly adds a listener to a button?
Anonymous Quiz
12%
button.addAction(new Action() { }
55%
button.addActionListener(new ActionListener() { }
10%
button.addAction(new Action() { }
17%
ActionListener = button.addAction(new Action() { }
4%
addActionListener(new ItemListener) {}
2%
None
Forwarded from Front End Development
Identify the unchecked Exception from the given choices
Anonymous Quiz
39%
NullPointerException
19%
SQLException
23%
InterruptException
11%
IOException
8%
None
Forwarded from Front End Development
identify the checked Exception
Anonymous Quiz
32%
ArithmeticException
35%
FileNotFoundException
17%
ClassCastException
10%
ArrayStoreException
6%
none
image_2022-08-06_08-15-30.png
114.2 KB
Best Inetegerated development Environment(IDE) to develop python:
1. Pydev
๐ฅ official website https://www.eclipse.org/; http://pydev.org/
2.Pycharm
๐ฅofficial website https://www.jetbrains.com/pycharm/
3. Sublime Text - python text editor
๐ฅofficial website http://www.sublimetext.com/
4. Visual Studio Code - my favorite๐โค๏ธ
๐ฅofficial website https://code.visualstudio.com
5. Atom
๐ฅ official website https://atom.io/
๐ฑโผ๏ธthese are some of the IDEs and text editors for python. there many others too used by different programmers.
๐join and share with_your_friends
1. Pydev
๐ฅ official website https://www.eclipse.org/; http://pydev.org/
2.Pycharm
๐ฅofficial website https://www.jetbrains.com/pycharm/
3. Sublime Text - python text editor
๐ฅofficial website http://www.sublimetext.com/
4. Visual Studio Code - my favorite๐โค๏ธ
๐ฅofficial website https://code.visualstudio.com
5. Atom
๐ฅ official website https://atom.io/
๐ฑโผ๏ธthese are some of the IDEs and text editors for python. there many others too used by different programmers.
๐join and share with_your_friends
๐3
Harvard CS109A #DataScience course materials โ huge collection free & open!
1. Lecture notes
2. R code, #Python notebooks
3. Lab material
4. Advanced sections
and more ...
https://harvard-iacs.github.io/2019-CS109A/pages/materials.html
1. Lecture notes
2. R code, #Python notebooks
3. Lab material
4. Advanced sections
and more ...
https://harvard-iacs.github.io/2019-CS109A/pages/materials.html
PDF Guide.pdf
11.8 MB
๐๐ฟSimple guiding pdf for learning javascript
๐learn , learn and learn๐
๐learn , learn and learn๐
๐2