BCA Semester 3 – OOP in Java – Unit 3: Object Oriented Programming Concepts (9Hrs)
Comprehensive questions and detailed answers for Unit 3: Object Oriented Programming Concepts (9Hrs). Perfect for exam preparation and concept clarity.
Define OOP. Explain features of Object Oriented Programming Language.
Define Abstract Class. Explain different types of Access controls available in java.
Define OOP. Write the characteristics of OOP language.
Differentiate between abstract class and interface with suitable example.
Define access modifier. Explain access modifiers in java with example.
a) Write a program to sort name of any five cities in ascending order.b) Define polymorphism. How do we achieve polymorphism in java explain with examples?
Explain features of Object oriented concept in detail.
What is a parameterized constructor? Explain with an example.
Explain method overloading in java with proper example.
What is the use of 'this' and 'super' keyword? Explain with examples.
Write short note on (Any Two):
a) Interface
b) Access modifiers
c) JDBC
What are uses of this keyword? Write a java program to implement method overloading concept.
What is difference between class and interface in java? Create a java class Time with three attribute hours, minutes and seconds. Use appropriate constructors to initialize instance variable. Use methods to display time in HH:MM:SS format, add and subtract two timeobject. Implement the class to add, subtract and display time object.
What is the purpose of valueof() method in Wrapper classes? Write a java program to generate random integer, double and bytes.
What is Constructor overloading? Write a class Distance containing private variable feet of type int and inches of type int, suitable constructors and three methods addDistance, subtractDistanceand display Distance for adding, subtracting and displaying objects. Write a separate classMyDistance containing main method to create, add, subtract and display distance objects.
What is constructor? Explain the role of constructor in Java class by considering a suitable example and also list the type of constructor.
Differentiate between overloading and overriding with suitable example WAP to Create a Set with following values: {"London", "NewYork", "SanFrancisco", "Beijing", "NewYork"} Perform operations on above Set:
>Add new element
>Get Set size
>Remove element
>Contains element?
>addAll
>removeAll
>retainAll
Sample Questions
Define Abstract Class. Explain different types of Access controls available in java.
Define OOP. Write the characteristics of OOP language.
Differentiate between abstract class and interface with suitable example.
Define access modifier. Explain access modifiers in java with example.
And more questions available on this page.