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

Java Assignment

The document outlines two Java programming assignments. The first assignment asks students to explain features of Java, the Java Virtual Machine, logical operators, loops with break and continue statements, constructor overloading with examples, the final keyword, arrays, inheritance and method overriding with an example, and wrapper classes. The second assignment asks students to explain strings and String class methods, try-catch blocks with an example, abstract methods and classes, packages and import statements, interfaces, FileInputStream and FileOutputStream classes, thread states, ways to create threads with an example, declaring and methods of the Vector class, and PriorityQueue.

Uploaded by

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

Java Assignment

The document outlines two Java programming assignments. The first assignment asks students to explain features of Java, the Java Virtual Machine, logical operators, loops with break and continue statements, constructor overloading with examples, the final keyword, arrays, inheritance and method overriding with an example, and wrapper classes. The second assignment asks students to explain strings and String class methods, try-catch blocks with an example, abstract methods and classes, packages and import statements, interfaces, FileInputStream and FileOutputStream classes, thread states, ways to create threads with an example, declaring and methods of the Vector class, and PriorityQueue.

Uploaded by

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

Java Programming Assignment 1

1. Explain the features of Java.


2. Write a short note on Java Virtual Machine (JVM).
3. What are various Logical operators available in Java?
4. Explain the use of break statement and continue statement with respect to loops.
5. Explain Constructor overloading in Java with examples.
6. Explain final keyword in Java.
7. What is an Array? How to declare an Array in Java.
8. What is Inheritance? What are the different types of Inheritance.
9. Explain with example Method overriding in Java.
10. Write a short note on Wrapper classes.

Java Programming Assignment 2

1. Explain what is a String? Also explain various methods of String class.


2. Explain try-catch block with example.
3. What are Abstract methods and Abstract classes?
4. How to create a Java package? Also explain import statement w.r.t packages.
5. What is an Interface? How it is different from a class?
6. Write a short note on FileInputStream and FileOutputStream class.
7. What are the various states of a Thread?
8. What are the different ways of creating Threads in Java? Explain any one with
example.
9. How to declare a Vector in Java? List the various methods of Vector class.
10. Write a short note on PriorityQueue.

You might also like