Uploaded by Tanuj Sunkara

Assignment 1-Unit I

advertisement
Assignment 1: Unit-I
1.
2.
3.
Distinguish between Objects and Classes.
Why is Java considered as “Architectural Neutral” and “Secure”?
Predict the output:
for(int j=0;j<5j;j++)
{
if ((j==2)
continue;
else
System.out.println(i);
}
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
Compare signed right shift with unsigned right shift operator.
Explain the key attributes of Object Oriented Programming.
Discuss the features of Java.
What is an API/Java Class Library.Discuss about java APIs.
Elaborate on the functions performed by JVM.
Discuss about the Java Environment/architecture.
Explain the scope and lifetime of variables.
Differentiate for and enhanced for loop.
Explain the various Decision making/selection statements in java.
Discuss about the operators in java with examples.
What is type conversion? Explain the type conversions in java by a
sample program.
What are the primitive datatypes in java? Explain
Explain the jump statements in java.
Distinguish between break and continue.
Explain the various looping constructs in Java.
What is a token? List the various java tokens.
Build a java Program to find whether the stored number is a prime
number or not.
Download