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. *; 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
In the Java code provided in the image the following syntax errors can be identified 1 The paint met... View full answer
Get step-by-step solutions from verified subject matter experts
