Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes Core Java (java)

Rating
-
Sold
-
Pages
6
Uploaded on
29-05-2024
Written in
2023/2024

Class notes Core Java (java)

Institution
Course

Content preview

2) Programming in JAVA, 2nd Ed, Sachin Malhotra &SaurabhChoudhary, String Manipulations and
Oxford Press Introduction to Packages

3) Core Java – SYBSC CS – Sheth Publication – Prof. Ahtesham Shaikh,
Prof.Beena Kapadia
3) The Java Tutorials: http://docs.oracle.com/javase/tutorial/

3.6 QUESTIONS:

1) What is a string? Write a program to accept a string as a command line
argument and print its reverse.
2) What is a string? Explain, with example, the following methods of
String class:
(i) indexOf() (ii) substring()
3) What is a package? Explain
4) List any five predefine packages in java.
5) What is the purpose of java.utilpackage. List any five classes or
interfaces.
6) What is the purpose of java.io package. List any five classes or
interfaces.
7) What is the purpose of java.sqlpackage. List any five classes or
interfaces.
8) How to define use defined package? How JVM locates user defined
packages? Explain.
9) Explain the visibility of class and there members for different access
specifier.






49

, Unit II

4
EXCEPTION HANDLING
Unit Structure
4.1 Introduction
4.2 Types of errors
4.3 Exceptions
4.4 Syntax of Exception Handling Code
4.5 Multiple catch Statements
4.6 Using finally Statement
4.7 Throw and throws keyword
4.9 Using Exception for debugging
4.9 Summary
4.10 Textbook
4.11 Additional References
4.12 Questions

4.1 INTRODUCTION
Rarely does a program run successfully at its very first attempt. It is very
common to make mistakes while developing as well as typing a program.
A mistake might lead to an error causing the program to produce
unexpected results. Errors can make a program go wrong.
An error may terminate the execution of the program or may produce an
incorrect output or even may cause the system to crash. It is important to
detect and manage properly all the possible error condition in the program
so that the program will not terminate/crash during execution.

4.2 TYPES OF ERRORS
Errors may be classified into two categories:

 Compile-time errors
 Run-time errors



50

Written for

Institution
Course

Document information

Uploaded on
May 29, 2024
Number of pages
6
Written in
2023/2024
Type
Class notes
Professor(s)
Radhika
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sahilajudiya11

Get to know the seller

Seller avatar
sahilajudiya11 parul
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions