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/ 2
PART A
1. What is meant by object Give Example
2. Define access specifier and draw the table of access rights 3. What is static in java 4. Compare constructor and method 5. In loan processing system identify the classes and objects. 6. Explain two situations in which static methods are used 7. List some of the separators used in JAVA 8. How dynamic initialization of variables achieved in java 9. How is a constant defined in java 10. Explain about class and write the syntax for declaring object for the class. 11. Explain the term public static void main(String args[]) 12. Explain abstraction and encapsulation 13. Explain polymorphism with example 14. Explain the features of JAVA 15. Explain Object oriented principles 16. What is a package 17. What is a class hierarchy give an example 18. Define static binding and dynamic binding 19. Why is multiple inheritance using classes a disadvantage in JAVA 20. What is meant by array and vector in JAVA 21. How to create one dimensional array 22. Explain abstract base class 23. Identify the error in the following statement char[] string=”abcdef”; 24. Explain the purpose of the keyword “final” PART B 1. 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, and 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: First 100 units - Rs. 1 per unit 101-200 units - Rs. 2.50 per unit 201 -500 units - Rs. 4 per unit > 501 units - Rs. 6 per unit If the type of the EB connection is commercial, calculate the amount to be paid as follows: First 100 units - Rs. 2 per unit 101-200 units - Rs. 4.50 per unit 201 -500 units - Rs. 6 per unit > 501 units - Rs. 7 per unit 2. i)Develop a program to find the row and column sum and Interchange the rows and columns ii) Develop a java program to merge two dimensional arrays A and B sorted ascending order into a single sorted array. See that it contains every item from array A and B in ascending order 3. Develop a java program to maintain the books details like BookId, AccessionNumber, BookName, Author, Publication in books package and keep the journal details such as Journalid; JournalName; in journal package in main class use these two packages details for Staff and Student classes and display the books and journals information as requested by the user 4. Develop a JAVA class shape with constructor to initialize the one parameter “dimension”. Now create three sub classes of shape with following methods. i) circle with methods to calculate the area and circumferences of the circle with the dimension as radius ii) Square with methods to calculate the area and length of the diagonal of the square with the dimension as length of one side ii) sphere with methods to calculate the volume and surface area of the sphere with the dimension as radius of the sphere. Write appropriate main method to create object of every class and test every method 5. Develop a Java Program to create an abstract class named Shape that contains two integers and an empty method named print Area(). Provide three classes named Rectangle, Triangle and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape. 6. Develop a JAVA program for the given scenario. We have a base class Teacher and a sub class PhysicsTeacher. Since class PhysicsTeacher extends the designation and college properties and work () method from base class. 7. Explain in detail about Object Oriented Programming principles and Make use of the principles and develop your own example program in JAVA 8. Develop a JAVA program to mimics a calculator. Input two real numbers and state the type of arithmetic operation between them through another keyboard input 9. Develop a JAVA program to multiply two 3X3 matrices 10. Develop a java application to implement currency converter (Dollar to INR, EURO to INR, Yen to INR and vice versa), distance converter (meter to KM, miles to KM and vice versa) , time converter (hours to minutes, seconds and vice versa) using packages