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

QuestionBank 2

Uploaded by

mitulkatoch07
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)
15 views1 page

QuestionBank 2

Uploaded by

mitulkatoch07
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

Question Bank

Introduction to Java

1. Describe any two relational and any two logical operators in Java with simple
example.
2. Write general syntax of any two decision making statements and also give its
examples.
3. Write a program to check whether an entered number is prime or not.
4. Explain break and continue statements with example.
5. State syntax and describe working of ‘for each’ version of for loop with one
example.
6. Define a class having one 3-digit number as a data member. Initialize and
display reverse of that number.
7. Explain any four features of Java.
8. Describe ?: (Ternary operator) in Java with suitable example.
9. Explain any two bit-wise operators with example.
10. What is byte code? Explain any two tools available in JDK.
11. What is JVM? What is byte code?
12. ‘?:’ what this operator is called ? Explain with suitable example.
13. Write a program to accept a number as command line argument and print the
number is even or odd.
14. Define JDK. List the tools available in JDK explain any one in detail.
15. Explain: 1) Platform independence 2) Compiled and interpreted features of Java.
16. Write any four mathematical functions used in Java.
17. Write a program to find sum of digits of number.
18. What do mean by typecasting? When it is needed?
19. Write a program to generate Fibonacci series : 1 1 2 3 5 8 13 21 34 55 89.
20. Write a program to print reverse of a number.
21. List eight data types available in java with their storage sizes in bytes.
22. Describe typecasting with one example.
23. What is meant by instance variable and static variable? Describe with example.

You might also like