Ask Question
6 November, 20:42

public class N extends String, Integer { } When you compile, you get the following message: N. java:1: '{' expected public class N extends String, Integer ^ 1 error Explain what the problem is and how to fix it.

+4
Answers (1)
  1. 6 November, 20:58
    0
    Correct Question:

    Public class N extends String, Integer { } When you compile, you get the following message: N. java:1: '{' expected public class N extends String, Integer ^ 1 error Explain what the problem is and how to fix it.

    Note the capital letter P

    Answer and Explanation:

    Problem: This is a syntax error, the key word "public" should begin with a small letter and not capital letter.

    How to fix: Replace the capital letter P by small letter p and recompile.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “public class N extends String, Integer { } When you compile, you get the following message: N. java:1: '{' expected public class N extends ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers