JAVA PROGRAMMING
Java is a powerful general-purpose object oriented programming language. It is used to develop both desktop and mobile applications. According to Oracle, the company that owns Java, Java runs on 3 billion devices worldwide, which makes Java one of the most popular programming languages.
This Java tutorial will guide you to learn Java.
Pazhanikumar holds a Ph.D. in Computer Application from Manonmaniam Sundaranar University,Tirunelveli. His research interests and work experience spans the area of Data mining. Dr. Pazhanikumar works as a faculty member at the Department of Science at S.T.Hindu College,Nagercoil.
INTENDED AUDIENCE : The UG and PG students from the Computer Science or Computer Application disciplines namely Bsc(CS),BCA,MSc(CS),MCA, etc. might be interested for this course.
COURSE LEVEL
UG & PG
COURSE LAYOUT
Week-1
Day-1
Day-2
Day-3
Day-4
Day-5
Day-6
Assignment
1. Write a program to the find the following 1 Prime number checking 2 Sum of digit
2. Write a program to calculate the roots of Quadratic equations.
3. Write a java application program to find NCR(Use recursive function)
4. Write a java application program to check the given no is Armstrong or not. (153=13+53+33)
5. Write a java application program to count no of even and odd digit in a given no.(Ex:Given no:23876 No of Even digits:3(2,8,6) Odd digits:2(3,7).
6. Write a java program to sort the numbers in ascending order.
7. Write a java application program for 1.Matrix Addition 2,Matrix Subtraction
8. Write a java program to generate fibonacci series.
9. Write a java program to generate multiplication table.
10. Write a java program to demonstrate the use of break and continue statement.
Quiz
Feedback
Week-2
Day-1&2
Day-3
Garbage Collection and Finalize Method
Day-4
Day-5
Day-6
Quiz
Feedback
1.Write a program to
create a room class, the attributes of this class isroomno, roomtype, roomarea
and ACmachine. In this class the member functions are setdata and displaydata.
2.Develop
a Java application to generate Electricity bill. Create a class with the
following members: Consumer no., consumer name, previous month reading, current
month reading, type of EB connection (i.e domestic or commercial). Compute the
bill amount using the following tariff. If the type of the EB connection is
domestic, calculate the amount to be paid as follows: 9 First 100 units - Rs. 1
per unit 9 101-200 units - Rs. 2.50 per unit 9 201 -500 units - Rs. 4 per unit
9 > 501 units - Rs. 6 per unit If the type of the EB connection is
commercial, calculate the amount to be paid as follows: 9 First 100 units - Rs.
2 per unit 9 101-200 units - Rs. 4.50 per unit 9 201 -500 units - Rs. 6 per
unit 9 > 501 units - Rs. 7 per unit.
3.Create
class point with following instance variable and methods. Instance variable:
private int x,y Constructors : public Point(), Point(int x, int y) Methods :
public void setX(int x), setY(int y), setXY(int x, int y)
4.
Create class Number with only one private instance variable as a int primitive type. To include the following methods (include respective
constructors) isZero( ), isPositive(), isNegative( ), isOdd( ), isEven( ),
isPrime(), isAmstrong() the above methods return boolean primitive type.
getFactorial(), getSqrt(), getSqr(), sumDigits(), getReverse() the above methods
return int/double primitive type.
Week-3
Day-1
Day-2
Method Overriding - Super Keyword
Day-3
Day-4
Day-5&6