Solved

Which Statements Create a JLabel That Holds the Words "Happy

Question 1

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents