0% found this document useful (0 votes)
18 views1 page

CSL203 - LAB - QPPDF

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)
18 views1 page

CSL203 - LAB - QPPDF

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
You are on page 1/ 1

1.

Define the single inheritance hierarchy Student -> Marks with data - regno, mark1 &
mark2and methods to create and display the data. Define an interface with members to define
and print sports weightage marks. Define a subclass Result with multiple inheritance which
extends Marks class and implements the interface sports. Later, create a Result object of a
student and print his/her mark list including total mark.Implement this inheritance
hierarchy in the main() method.

2.Write a Java program to create a method that takes an integer as a parameter and throws an
exception if the number is odd other wise write the number into a file

3. Write a java program to Read a sentence and write the palindrome words in the sentence in to a
file.

4.Write a Java program that reads a line of integers, and write the even numbers into a file named
Even and Write the odd numbers into a file named Odd.(Use String Tokenizer)

5.Write a Java program for the following:


1) Create a doubly linked list of elements.
2) Delete a given element from the above list.
3) Display the contents of the list after deletion.

1.Define the single inheritance hierarchy Student -> Marks with data - regno, mark1 &
mark2and methods to create and display the data. Define an interface with members to define
and print sports weightage marks. Define a subclass Result with multiple inheritance which
extends Marks class and implements the interface sports. Later, create a Result object of a
student and print his/her mark list including total mark.Implement this inheritance
hierarchy in the main() method.

2.Write a Java program to create a method that takes an integer as a parameter and throws an
exception if the number is odd other wise write the number into a file

3. Write a java program to Read a sentence and write the palindrome words in the sentence in to a
file.

4.Write a Java program that reads a line of integers, and write the even numbers into a file named
Even and Write the odd numbers into a file named Odd.(Use String Tokenizer)

5.Write a Java program for the following:


1) Create a doubly linked list of elements.
2) Delete a given element from the above list.
3) Display the contents of the list after deletion.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy