K. K. Wagh Polytechnic, Nashik.
Department of Artificial Intelligence and Machine Learning
Academic Year: 2023-24
Subject : Java Programming (22412) Scheme: I
Class: SYAN Sem : IVth
Question bank-Chapter – 1,2,3
1. List all features of Java. Explain any four features.
2. Write a program to find whether a number is prime or not using command line argument.
3. Explain type casting with suitable example.
4. Explain different data types in Java.
5. Enlist relational and logical operator in java
6. Describe Ternary Operator in Java with suitable example.
7. State & explain scope of variable with an example
8. Define the terms with example. i) Class ii) Object
9. Explain use of super keyword w.r.t inheritance with small program.
10. Define constructor? Describe type of constructor with suitable example.
11. Explain the following methods:
a)charAt() b)substring() c)replace() d)concat()
12. Differentiate between String and StringBuffer class.
13. Explain any four methods of vector class with example
14. Define a class person with data member as Aadharno, name, Panno implement concept of constructor
overloading. Accept data for 5 object and print it
15.
16. Write a program to accept as many integers as user wants in a vector. Delete specific element and display
remaining list.
17. Define interface give its general structure state its need.
18. Write a program to create package Math_s having two classes as addition and subtraction. Use
suitable methods in each class to perform basic operations.
19. Describe the how to create user defined package in java.
20. List any four in built packages in java with its use.
21. Implement following inheritance: Display details of devices from loadOS() method of class Mobile.
22.State the Difference between Array And Vector.
23.State the Difference between String And String Buffer class.
Sign of Faculty