PCA25C01J · Cycle Test 1
Covers units 1 & 2: Introduction to Java / Classes and Constructors
Answer Any 4 Questions
Write the tokens in Java.
Give a brief description about Java buzz words.
Explain the classification and scope of variables with suitable example in Java.
Write about the concepts of array with an example.
Explain the fundamental concepts of class and object in Java with suitable examples.
Explain constructor and its types? Why do constructors not return values?
Answer all the Questions
Explain the different control structures in Java. Illustrate each type with suitable example programs.
Write a Java program to calculate the grades of the students based on their marks in 6 subjects.
Write a Java program to read login name and password. Login name is the rollno and password is the reverse of rollno. Check whether the given name and password are correct.
Explain the concept of constructor overloading in Java with an example.