Default access modifier for interface method


1)(a) What do you mean by package access specifiers and describe why are they used?

(b) Which package is imported by all java programs by default?

2)(a) What is meant by an Interface and why is it used? Describe the default access modifier for the Interface method.

(b) If we want to define the variable in the interface, what type must it be?

3)(a) What is the signature of the constructor of a thread class.

(b) What are the two ways to create a thread?

(c) What is the unit for 1000 in the below statement?       
           ob.sleep (1000)

4)(a) Can a class be its own  event handler? Describe in brief how to implement this.

(b) Write down the difference between a ‘local’ applet and a ‘remote’ applet?

5)(a) Write down the difference between TCP & UDP?

(b) How would you get IP Address of a machine from its hostname? Write down two line example code.

6)(a) Write down the life cycle methods of servlets? Briefly explain them.

(b) What is meant by servletContext?

7)(a) What are Java Keywords? Wriyte down the name of any four keywords reserved for future use.

(b) What do you mean by Java Control Statements? Explain each one of them and their usefulness.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Default access modifier for interface method
Reference No:- TGS013326

Expected delivery within 24 Hours