0% found this document useful (0 votes)
9 views

JAVA QB

The document is a question bank for a Java Programming course (CM-502) covering key concepts from two chapters. It includes short and long answer questions on topics such as Java's importance, inheritance, data types, arrays, constructors, method overloading, interfaces, and access modifiers. The questions are designed to assess understanding of Java programming fundamentals and its features.

Uploaded by

sjbcmsmba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

JAVA QB

The document is a question bank for a Java Programming course (CM-502) covering key concepts from two chapters. It includes short and long answer questions on topics such as Java's importance, inheritance, data types, arrays, constructors, method overloading, interfaces, and access modifiers. The questions are designed to assess understanding of Java programming fundamentals and its features.

Uploaded by

sjbcmsmba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

JAVA PROGRAMMING (CM-502) QB

CHAPTER-1:
Short Answer Questions:
1.What is the importance of Java in Internet programming.
2.Compare Java and C++.
3.What is a Byte codes of java.
4.What is JVM.
5.List the features of java.
6.What do you mean by type conversion and type casting.
7.What is one-dimensional array.
8.What is two-dimensional array.
9. Define class and object.
10. Define the Usage of new operator.
11. What is constructor? Why they are used?
12. List various types of constructors.
13. What is usage of this pointer.
14.Define method.
15. What is the difference between a constructor and a method.
16. What is the purpose of static.
17. Why is main method assigned as static
18. List out the properties of static variables and methods.
19. What is method overloading.
20. What is constructor overloading.
21. Explain about static block.
22. List primitive data types in java.
23. List different way to overload a method.
24. Explain about string classes.
25. List few string methods.
26. What are command line arguments.
27. What are the various purposes of final.
28. What are final methods and final classes.
Long Answer Questions:

1. Explain the features of java.


2. Explain the process of write and execute a Java program.
3. Explain various primitive data types of java? With Examples.
4. Explain about conversion and casting features of java with an example.
5.Explain about one-dimensional and two-dimensional arrays and give example
programs.
6. Explain the byte code concept of java.
7.Explain about constructor? list various types of constructors? with a program.
8. Explain about the static members with the help of programs
9. Explain about the final members with the help of programs.
10. What is this pointer? write a java program to demonstrate how this pointer can
be used.

CHAPTER-2:
Short Answer Questions:
1. What inheritance? why it is used?
2. What is multilevel inheritance.
3. Explain method overloading.
4. Define the usage of super keyword.
5. What is an interface.
6. List the advantages of an interface.
7. Difference between abstract class and interface.
8.Define a package.
9.What is class path.
10. What is the process of importing a package.
11. List different types of access modifiers in java.
Long Answer Questions:

1. Explain inheritance and types of inheritance with an example program.

2. Explain about package with example program.

3. Explain the concept of importing packages in java with example.

4. Describe the various levels of access protection available in packages with an


example program.

5. Explain about interface with example program.

6. Explain briefly about access modifiers and their usage.

7. Explain method overriding with a program.

8. Explain super keyword with a program.

You might also like