0% found this document useful (0 votes)
6 views127 pages

Java Notes

The document discusses various programming concepts including polymorphism, type casting, and exception handling in Java. It highlights the importance of using try-catch blocks to manage exceptions and outlines security issues related to applets. Additionally, it references external resources for further information on topics like inheritance and abstraction.

Uploaded by

Sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views127 pages

Java Notes

The document discusses various programming concepts including polymorphism, type casting, and exception handling in Java. It highlights the importance of using try-catch blocks to manage exceptions and outlines security issues related to applets. Additionally, it references external resources for further information on topics like inheritance and abstraction.

Uploaded by

Sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1-41

42-52

53-66

67-99
100
Polymorphism is the process of representing one form in multiple forms.
For scope refer GFG
Refer GFG

Type Casting

In typing casting, the destination data type may be smaller than the source data type when
converting the data type to another data type, that’s why it is also called narrowing conversion.
Refer WRITEN NOTES FOR Control Flow
int[] arr/name= new int[100];
Double is like FLOAT in python
23/06/2024
functions
Refer Tutorial Point

value: pass by value


ref:pass by ref
Abstraction:
For Types matter refer GFG Please check Adv In GFG

[Link]
a/

Codes are in GDB Account Sai630 mail


It can not access the parent class ,when the parent class is defined as private.

When `SUPER` is called, it is getting the parent class color. In this case,
`[Link]` is getting the parent color, which is white.
Refer GFG

refer GFG
It is unwanted or unexpected event occurs during the execution of program

Refer Online for Table Exp 2M

Refer GFG for both exception


In Java exception is an “unwanted or unexpected event”, that occurs during the execution of the program. When
an exception occurs, the execution of the program gets terminated. To avoid these termination conditions we can
use try catch block in Java. In this article, we will learn about Try, catch, throw, and throws in Java.

The try block contains a set of statements where an exception can occur.
Chat gpt for better code
print hashmap dirctly

hm
Example: Suitable for situations where an
ODBC driver is available and a quick solution is
needed.

Example: Suitable for applications where performance is crucial and the native API is available.
Example: Suitable for applications where database access needs to be managed centrally.

Example: Suitable for


applications that need to be
platform-independent and
require direct access to the
database.
Support for Multimedia:
Ease of Distribution
Automatic Updates
Security Issues with the Applet

• Applets are loaded over the internet and they are prevented to make open network
connection to any computer, except for the host

Applets can't start any programs on your computer. This means they can't run any
unwanted or harmful processes.

• They are also prevented from starting other programs on the client.

• Applets can't list or access the contents of your file system.

• They cant load the libraries or define the native method calls

You might also like