Question: Identify FOUR (4) syntax errors in the Java code as shown in Figure 1. import java.awt. * ; import java.util. *; public class TOP2121{

Identify FOUR (4) syntax errors in the Java code as shown in Figure 1. import java.awt. * ; import java.util. 

Identify FOUR (4) syntax errors in the Java code as shown in Figure 1. import java.awt. * ; import java.util. *; public class TOP2121{ public void paint (g) { Font f=new Font ("Arial", Font. BOLD, 20); g. setFont (f); g.setColor (C.blue); g.drawstring ("Welcome to the world of Java Applets", 20, 40); g.drawstring("Today is "+ new Date(), 20,120); } } Figure 1. Erroneous Java Code

Step by Step Solution

3.45 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In the Java code provided in the image the following syntax errors can be identified 1 The paint met... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!