0% found this document useful (0 votes)
9 views5 pages

Core JAVA

The document outlines the basics of Java programming, covering topics such as Java tokens, selection and iteration statements, arrays, and object-oriented programming concepts including classes, inheritance, and polymorphism. It includes practical programming exercises for selection and iteration statements, as well as examples of array manipulations and object-oriented programming tasks. Additionally, it touches on exception handling and the Java Collection API.

Uploaded by

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

Core JAVA

The document outlines the basics of Java programming, covering topics such as Java tokens, selection and iteration statements, arrays, and object-oriented programming concepts including classes, inheritance, and polymorphism. It includes practical programming exercises for selection and iteration statements, as well as examples of array manipulations and object-oriented programming tasks. Additionally, it touches on exception handling and the Java Collection API.

Uploaded by

pandacreatorinn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

JAVA Language Basics:

- Java Tokens
- Selection Statements
- Iteration Statements
- Arrays

Object Oriented Programming


- Class vs. Object
- Defining Classes
- Class Instantiation
- Static v/s instance Variable
- Static v/s instance Method
- Method Overloading
- Use of this as a keyword
- Static v/s instance initializer block
- Constructors
- Overloaded Constructors
- this() constructor call
- Private Constructor

- Accessibility Modifier
- Inheritance
- Use of super as a keyword
- Overriding vs. Overloading
- super() Constructor Call
- Inheritance Vs Aggregation
- Polymorphism and Dynamic Method Binding
- Abstract Classes and Methods
- Interface
- Adapter Class

- Exception Category
- Exception Handling: try, catch, and finally
- Nested Try-Catch Blocks
- Collection API
- List, Sets & Map
- Java.lang
- Math Class
- String Class
- Java.util
- Date Class

Selection Statement:

1. Finding the 3rd highest value out of 4.


2. Program to convert a given number of 4 digit into words
3. Enter electricity unit charges and calculate the total electricity bill according to the given condition:
Default bill amount is 500, calculate netBill
a) unit<=50 Rs. 0.unit
b unit<=100 Rs. 0.75/unit
c) unit<=200 Rs. 1.20/unit
c) unit<=300 Rs. 1.50/unit
e) above Rs. 2.0/unit
4. WAP to find the taxable amount of an employee.
a) No tax upto 10000.
b) 15% tax upto 17500.
c) 20% tax upto 25500.
d) Above 25%.
5. WAP to find largest value out of 4 using nested if.
6. WAP to check whether a character is alphabet, digit or special character
7. WAP to check whether a character is Uppercase or Lowercase
8. WAP to input amount from user and print minimum number of notes (Rs. 2000, 500, 100, 50, 20, 10,
5, 2, 1)
required for the amount. How to the minimum number of notes required for the given amount in Java
programming.

Example
Input amount: 575

Output

Total number of notes:


500: 1
100: 0
50: 1
20: 1
10: 0
5: 1
2: 0
1: 0
9. WAP to find the largest value out of 3 using conditional operator.
10. Write a program in Java which is a Menu-Driven Program to compute the area of the various
geometrical shape
(circle, rectangle, triangle, square).

Iteration-While loop
1. WAP to check weather the number is palindrom or not.
2. WAP to check weather the number is armstrong or not.
3. WAP to input 10 value of 10's digit and find out the maximum length of increasing series. (Do not use
Array)
4. WAP to input 10 value of 10's digit and find out the largest value with number of occurrence. (Do not
use Array)
5. WAP to enter a binary number and convert it into its equivalent decimal number.
6. WAP to enter a decimal number and convert it into its equivalent binary number.
7. Print series! 1,6,13,22,33,46,…………for n-time
8. Print series! 3,7,15,31,63,127…………for n-time
9. Print Series 1,2,9,28,65............for n-time
10. Print Series 1 12 123 1234 …………n-time
11. Print Series 6, 12, 21, 33, 48.......n-time

Iteration-For loop

1. Print the pattern.


1
21
321
4321
54321
2. Print the pattern.
54321
4321
321
21
1
3. Print the pattern.
1
212
32123
4321234
543212345
4. Print the pattern.
12345
21234
32123
43212
54321
5. Print the pattern.
1 1
12 21
123 321
1234 4321
123454321
6. Print the pattern.
*****
* *
* *
* *
*****
7. Print the pattern.
*
***
*****
*******
*********
8. Print the pattern.
*
* *
* *
* *
* * * * *
9. Print the pattern.
*
* *
* *
* *
* *
* *
*******
10. Print the pattern.
1 1
2 2
3 3
44
5
44
3 3
2 2
1 1
11. Histogram Program
1-D Array 1. Bubble Sorting.
2. Selection Sorting.
3. Linear Search.
4. Binary Search.
5. Inerst Element Into an Array.
6. Delete Element from an Array
7. Merge Two Ordered List (duplicacy not allowed)

2-D Array 1. Matrix Transpose


2. Diagonal matrix transpose
3. Matrix Addition
4. Matrix Multiplication

OOPS
Programming 1. Create a class containing String Utility Method:
a) toLowerCase(String mainString)
b) toUpparCase(String mainString)
c) titalCase(String mainString)
d) reverse(String mainString)
e) indexOf(String mainString, char ch)
f) indexOf(String mainString, String subString)
g) substring(String mainString, int begin, int end)
h) replace(String mainString, char oldChar, char newChar)
2. Create a class to Construct Matrix and also having 2 method:
a) addMatrix
b) multiplyMatrix

You might also like