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

Java CT1 Questions

The document contains a set of questions for a Java programming class test, covering topics such as the Java virtual machine, bitwise operators, type casting, user input using the Scanner class, instance variables, constructors, and the 'this' keyword. Each question prompts students to explain concepts and provide Java programs as examples. The test assesses both theoretical understanding and practical programming skills in Java.

Uploaded by

Chess Infinity
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)
6 views1 page

Java CT1 Questions

The document contains a set of questions for a Java programming class test, covering topics such as the Java virtual machine, bitwise operators, type casting, user input using the Scanner class, instance variables, constructors, and the 'this' keyword. Each question prompts students to explain concepts and provide Java programs as examples. The test assesses both theoretical understanding and practical programming skills in Java.

Uploaded by

Chess Infinity
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

Java Programming Class Test 1 Questions

1. a) Discuss the responsibility of Java virtual machine. b) Explain various features of Java.

2. a) What are the bitwise operators available in Java? What will be the result of bitwise
operation “35 & 45”? b) Present the rules for naming identifiers in Java.

3. a) What is type casting? Differentiate between implicit and explicit type casting with the help
of program.

4. a) Explain how data can be read from user in command line using Scanner class? b) Write a
Java program to read an integer value, float value, string and a statement from user and print the
same.

5. a) What are instance variables in java? Discuss with the help of a program. b) Write a java
program to access methods of a class using object.

6. a) Discuss the characteristics of a constructor. b) Write a Java program to demonstrate


constructor overloading.

7. a) Explain the usage of this keyword in Java. b) Explain the use of static variable with the help
of a Java program.

You might also like