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

JP Assignment 1

This document outlines an assignment on Java programming. It includes 10 questions on Java concepts and features in Part A and Part B. Part A covers byte code performance, Unicode, inheritance vs polymorphism, abstraction vs information hiding, and type casting. Part B discusses object-oriented programming principles and applications, Java buzzwords, and the JVM role. It also provides 10 programming problems to solve, including generating factorials, finding maximum of 3 numbers, printing pyramids, and checking palindromes.

Uploaded by

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

JP Assignment 1

This document outlines an assignment on Java programming. It includes 10 questions on Java concepts and features in Part A and Part B. Part A covers byte code performance, Unicode, inheritance vs polymorphism, abstraction vs information hiding, and type casting. Part B discusses object-oriented programming principles and applications, Java buzzwords, and the JVM role. It also provides 10 programming problems to solve, including generating factorials, finding maximum of 3 numbers, printing pyramids, and checking palindromes.

Uploaded by

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

JAVA PROGRAMMING - ASSIGNMENT - 1

PART-A
1) Support the statement “java byte code gives high performance”.
2) What is importance of Unicode in java? Explain.
3) What is the significance of Java’s byte code?
4) Compare inheritance with polymorphism
5) Differentiate between abstraction and information hiding.
6) What is byte code? How it will be generated?
7) Illustrate type casting in java with an example.

PART-B
1. a) What are the problems with procedure languages? How object oriented languages overcomes the
problems of procedural languages?
b) List and explain the applications of OOPs.
2. What are java Buzzwords? Explain about them.
3. a) Discuss the principles of object oriented languages in detail.
b) What is the role and responsibility of JVM in program execution?
4. a) Explain Primitive type conversion and casting with examples.
b) Explain precedence rules and associativity concept
5. a) Discuss the lexical issues of Java.
b) Illustrate the usage of jump statements in Java with example.

Programs:

1) Write a Java program to find the value of n!, where n is a given integer.
2) Write java program using ternary operator to find maximum of three numbers.
3) Write a Java program to generate a pyramid of numbers for given number N using for loop.
4) Write a Java program to interchange the rows and columns of a given matrix.
5) Write a Java program to check whether a given number is palindrome or not?
6) Write a Java program to find the sum of the squares of the diagonal elements of a square matrix.
7) Write a Java program to sort a given set of strings in the alphabetical order where the strings are
supplied through the command line.
8) Write a java program to generate the Fibonacci series.
9) Write a java program to simulate the operation of numerical calculator to perform the functions
Addition (+), Subtraction (-), Multiplication (*) and Division (/).
10) Write a java program to check the given string is a palindrome or not.

You might also like