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

Java Assignment 1

Uploaded by

vardaan0610
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)
0 views1 page

Java Assignment 1

Uploaded by

vardaan0610
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

RAJARAJESWARI COLLEGE OF ENGINEERING

COMPUTER SCIENCE & ENGINEERING


Assignment - I
Subject: PROGRAMMING IN JAVA
Subject Code: BCS306A
1. Explain the following object oriented concepts:
Polymorphism ii) Encapsulation iii) Inheritance
2. What are Keywords and Identifiers? List the rules to write an identifier.
3. Discuss various data types used in Java with the memory allocation and value range.
4. Explain scope and lifetime of variables with suitable examples.
5. Explain the process of compiling and running the java application with the help of “Hello World”
program
6. Write a java program to find the area of circle.
7. What are multi-dimensional arrays? Explain with examples.
8. What are irregular arrays in Java? Write a program to find biggest of numbers in an irregular
array with at least three rows.
9. What is type Conversion and Casting? Explain automatic type promotion in expressions with
rules and a demo program.
10. Explain the following operators with example.
i) >> ii) >>> iii) << iv) ? v) %=
11. Explain the difference between the following.
i) Logical AND and short circuit AND
ii) for loop and foreach loop with suitable example.
12. With suitable example, explain the following jump statements:
i) break ii) continue with proper output interpretation
13. What is class? How to create the object for the class with suitable example.
14. Explain the following with suitable example.
i) Overloading ii) Overriding
15. What is constructor? Demonstrate the different types of constructors with suitable program.
16. Explain the following keywords.
i)this ii) super iii) final iv) static
17. Explain the different access specifiers supported in Java.
18. Write a Java program to implement stack of 5 integers.
19. Write a simple program to depict class C extends class B, class B extends class A and explain
how constructors are called if an object for class C is created.

You might also like