Solved

Which Statements Create a JLabel That Holds the Words "Happy

Question 68

Multiple Choice

Which statements create a JLabel that holds the words "Happy birthday"  and adds the greeting to a JFrame object named aGreeting ?


A) JLabel mygreeting = aFrame.add(mygreeting) ; new JLabel( "Happy Brithday") ;
B) JLabel mygreeting = new Frame( "Happy Brithday") ;
C) JLabel("Happy Brithday") ;  aGreeting.add(Label) ;
D) JLabel mygreeting = new JLabel("Happy Birthday") ; aGreeting.add(mygreeting) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions