Sunday, August 4, 2013

Layout Managers


You are writing a program that you expect to be used by many users, all with a different computer system. In two paragraphs explain would you use layout managers or would you hard code the position of components inside your GUI?
---------------------------------------------------------------------------------------------------------------
1.    The extends keyword applies to
A.    A class inheriting from another class
B.    A variable 
C.    A method 
D.    An expression 

2.    A java class can inherit from two or more classes
A.    True
B.    False

3.    In java, multiple inheritance  is implemented using the concept of

a.    All instance variable and methods 
b.    Public instance variables and methods  only
c.    Protected instance variables and methods only
d.    Protected and public instance variables and methods
    
4.    Which of the following is inherited by a subclass
A.    all instance variables and methods
B.    public instance variables and methods only
C.    protected instance variables and methods only
D.    protected and public instance variables and methods

5.    what java keyword is used in a class header when a class is defined as inheriting from a method from an interface?
A . inherits 
b. includes 
c. extends
d.  implements 
21. the G class inherits from F class.  Code the class header of the G class.
// your code goes here

33. you coded the following class:
Public class P extends M
{
}
When you compile, you get the following message :
P.java: 1: P is not abstract and does not override attract method


Click Here To Get More On This Paper!!!!

No comments:

Post a Comment