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

Assignment-1: Hello World

The document contains details of 3 assignments related to Java concepts. It includes questions about Java features like classes, objects, constructors, arrays, inheritance, interfaces, abstract classes and more. Memory allocation to objects and differences between primitive data types, classes and interfaces are discussed. Key methods and keywords like main(), final, finalize() and their usage are explained. Object oriented programming concepts like inheritance, polymorphism, abstraction and encapsulation are covered through questions on method overloading, overriding and abstract classes.

Uploaded by

Puneet Bhutra
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Assignment-1: Hello World

The document contains details of 3 assignments related to Java concepts. It includes questions about Java features like classes, objects, constructors, arrays, inheritance, interfaces, abstract classes and more. Memory allocation to objects and differences between primitive data types, classes and interfaces are discussed. Key methods and keywords like main(), final, finalize() and their usage are explained. Object oriented programming concepts like inheritance, polymorphism, abstraction and encapsulation are covered through questions on method overloading, overriding and abstract classes.

Uploaded by

Puneet Bhutra
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ASSIGNMENT-1

Hello World:
1) State Features of Java?

2) Describe public static void main(String args[ ])

Command Line:
1) 2) 3)

What are Class, Constructor and Primitive data types? What is an Object and how do you allocate memory to it? What is an Object and how do you allocate memory to it?

ASSIGNMENT-2
2-dimentional array:
1)

What is the difference between Integer and int?

2) What is package?

Simple array:
1) 2)

What is the difference between Array and vector? Are there any global variables in Java, which can be accessed by other part of your program?

Zig-zag array:
1) 2)

What is the difference between String and String Buffer? Are there any global variables in Java, which can be accessed by other part of your program?

3)

What is a stream and what are the types of Streams and classes of the Streams?

Complex:
1) 2)

What are methods and how are they defined? What is the use of bin and lib in JDK?

ASSIGNMENT-3
Simple inheritance:
1)

What is meant by Inheritance and what are its advantages?

Multilevel inheritance:
1)

What is the difference between superclass and subclass?

Hierarchical inheritance:
1)

What is the difference between this() and super()?

Interface sort:
1) 2)

What is interface and its use? What is the difference between abstract class and interface?

Final keyword:
1) What is Final?
2)

What is final, finalize() and finally?

Abstract Demo:
1) Explain Abstract class?
2)

What is the difference between abstract class and interface?

Method Overriding:
1) 2)

What is method overloading and method overriding? Which functions are overridden and which are not?

MethodOverloading:
1)

What is difference between overloading and overriding?

You might also like