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

ETIT-303 Java Programming and Web Design Tutorial 1

The document contains a list of 10 questions about Java programming concepts: 1) It asks about private and protected top-level classes and explains the garbage collector thread. 2) It discusses spaghetti code and how Java avoids it. 3) It explains assertions with a short code example. 4) It asks how to force garbage collection in Java. 5) It inquires whether the JVM is an interpreter or compiler.

Uploaded by

Ceh
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)
30 views1 page

ETIT-303 Java Programming and Web Design Tutorial 1

The document contains a list of 10 questions about Java programming concepts: 1) It asks about private and protected top-level classes and explains the garbage collector thread. 2) It discusses spaghetti code and how Java avoids it. 3) It explains assertions with a short code example. 4) It asks how to force garbage collection in Java. 5) It inquires whether the JVM is an interpreter or compiler.

Uploaded by

Ceh
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

ETIT-303 Java Programming and Web Design

Tutorial 1
a)
b)
c)
d)
e)
f)
g)
h)

Can a top level class be private or protected?


Name and explain garbage collector thread.
What is Spaghetti code and how it is avoided in java?
Explain assert with a short code in java.
How can you force garbage collector in java?
What actually JVM is interpreter or compiler?
Can we use this keyword in abstract class?
Which interface must an object implement before it can be written to a stream as an
object?
i) What is partial implementation in java? What can be done to correct that? Write a
program on the same .
j) What is the output of following program?
public class test {
public static void main(String args[] )
{
int x = 3 ;
int y = 1 ;
if (x = y)
System.out.println(not equal);
else
Syetem.out.println(equal);
}
}

You might also like