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

Programming Assignment 1

The document outlines a series of programming questions related to Java, covering topics such as JDK, JRE, and JAR differences, the main method structure, object-oriented principles, class instantiation with private constructors, and string immutability. It also includes inquiries about method overloading, exception handling, input methods, runtime arguments, inheritance, interfaces, and synchronization. Answers must be original and submitted by February 17, 2024, both in print and electronically.

Uploaded by

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

Programming Assignment 1

The document outlines a series of programming questions related to Java, covering topics such as JDK, JRE, and JAR differences, the main method structure, object-oriented principles, class instantiation with private constructors, and string immutability. It also includes inquiries about method overloading, exception handling, input methods, runtime arguments, inheritance, interfaces, and synchronization. Answers must be original and submitted by February 17, 2024, both in print and electronically.

Uploaded by

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

1. Differentiate among JDK, JRE and JAR. Explain their usage with real time examples.

2. Explain PUBLIC STATIC VOID MAIN (STRING ARGS[])


3. Is Java fully object oriented paradigm? Justify your answer
4. Can you instantiate a class if the constructor has been declared private? If yes, write a
sample code illustrating the concept.
5. Differentiate between StringBuffer and StringBuilder with a Program.
6. Why Strings Are Immutable in Java? Write a program to explain.
7. Can we overload main method? If yes, write a program
8. Differentiate between THROW and THROWS with an example
9. In how many ways the input can be given to a Java program? Write a program for this
10. What are run time arguments? Explain with an example program
11. Write a program where you can use inheritance and interface concepts
12. Explain the concept of synchronization with an example

Note: Print out of the Answers to be submitted on 17.02.2024 to the respective Class In-
charges and soft copy to be sent to mail id [email protected]
Answers to be prepared only with your Own Words. Copy and Paste is strictly prohibited.
Example Programs also should be your own programs.

You might also like