MCQs > IT & Programming > Java > Output of following program? public class UpWork { private String freelancer; private boolean busy: public static void main(String[] args) { UpWork upw = new UpWork(); System.out.print('Busy= ' + upw.busy); System.out.print(', Freelancer = ' + upw.freelancer); } }

Java MCQs

What will be the output of following program? public class UpWork { private String freelancer; private boolean busy: public static void main(String[] args) { UpWork upw = new UpWork(); System.out.print("Busy= " + upw.busy); System.out.print(", Freelancer = " + upw.freelancer); } }

Answer

Correct Answer: Busy = false, Freelancer = null

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it