0% found this document useful (0 votes)
7 views1 page

JAVA Important Questions

The document contains important questions related to Java programming, divided into two parts. Part A covers fundamental concepts such as Java features, the main method, classes, objects, and garbage collection, while Part B delves into advanced topics like JDK, data types, object-oriented programming, constructors, and polymorphism. It also includes practical programming tasks and examples to illustrate these concepts.

Uploaded by

nkowshikvarma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

JAVA Important Questions

The document contains important questions related to Java programming, divided into two parts. Part A covers fundamental concepts such as Java features, the main method, classes, objects, and garbage collection, while Part B delves into advanced topics like JDK, data types, object-oriented programming, constructors, and polymorphism. It also includes practical programming tasks and examples to illustrate these concepts.

Uploaded by

nkowshikvarma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MID I

IMPORTANT QUESTIONS

PART A
1. What is java? List various features of Java.
2. Why is the ‘main ()’ method declared as public static in JAVA programming?
3. Write a java program to find the smallest number among three numbers.
4. Define class and object? Give the syntax to create class and object.
5. Illustrate the importance of this keyword in java?
6. Write the purpose of the static keyword in Java?
7. What is the method?What are the advantages of a parameterized method?
8. Explain the looping statements in Java with Syntax.
9. Specify the importance of garbage collection?
10. Explain about the input and output statements in java.
PART –B

1. Explain JDK? Write a simple java program to display some message and explain each and every line.
2. What is a token in Java? Explain various tokens in java.
3. What is a data type? Explain about primitive and non primitive data types in java? Give an example
program to find the size and range of primitive data types?
4. Write about command line arguments. Accept the input from keyboard to display Fibonacci series.
5. List out various types of operators in java and explain about them.
6. What is Object Oriented Programming? Explain the features of object oriented programming in detail.
7. What is a constructor ? Discuss various types of constructors and demonstrate with an example.
8. What are access modifiers and non access modifiers in java? Write an example for each.
9. List out the access modifiers in Java and give their scope and accessibility. Write a Java program
demonstrating them.
10. What is polymorphism? Discuss various types of polymorphism. What are the differences between
constructor overloading and method overloading.
11. Differences between static method and non-static method with example.
12. Design a class that represents a bank account and construct the methods to i) Assign initial values ii)
Deposit an amount iii) Withdraw amount after checking balance iv) Display the name and balance.

You might also like