Ask Question
10 March, 18:26

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.

+2
Answers (1)
  1. 10 March, 19:33
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers