Q2: Fill in the blank. 1. Default value of any reference variable is

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
fill in the blank in java
Q2: Fill in the blank.
1. Default value of any reference variable is
is a process that converts a value of one data type to another data type.
keyword to distinguish between local variable and instance
2.
3. One of usage of
variable.
4. The
S. The subclass constructor uses the
the superclass.
keyword in java is used for memory management mainly.
keyword to invoke the constructor of
6. One forms of Run-time polymorphism is
7.The output of the program in case A is
and in case B is
public class exam {
static int i=1;
static void m(int iX
i+= 2;}
public static void main(Stringl) args) {
System.out.printin(i+ ", ");
m(i):
System.out printin(i):)
public class exam{
static int i=1;
static void m(i){
+=2;)
public static void main(String args) {
System.out.printin(i+", ");
System.out.printin(i):}
8. In the following code the access modi
mark(?) in the statements 1 and statement 2 respectively without error happen.
class Exam{
7 int i; // 1
Exam({
i=1;}
void display() {
? int j=2;
System.out.printin( i+j);}
// 2
Transcribed Image Text:Q2: Fill in the blank. 1. Default value of any reference variable is is a process that converts a value of one data type to another data type. keyword to distinguish between local variable and instance 2. 3. One of usage of variable. 4. The S. The subclass constructor uses the the superclass. keyword in java is used for memory management mainly. keyword to invoke the constructor of 6. One forms of Run-time polymorphism is 7.The output of the program in case A is and in case B is public class exam { static int i=1; static void m(int iX i+= 2;} public static void main(Stringl) args) { System.out.printin(i+ ", "); m(i): System.out printin(i):) public class exam{ static int i=1; static void m(i){ +=2;) public static void main(String args) { System.out.printin(i+", "); System.out.printin(i):} 8. In the following code the access modi mark(?) in the statements 1 and statement 2 respectively without error happen. class Exam{ 7 int i; // 1 Exam({ i=1;} void display() { ? int j=2; System.out.printin( i+j);} // 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education