Testing test on JAVA P2

  1. Question 1. When the compiler encounters an Exception error in the main thread java.lang.NoClassDefFoundError: myprogram. What does this error mean?
    1. Program path is wrong
      1. There is no main function
    2. Do not declare class
    3. There is no public keyword at the beginning of class declaration
  2. Question 2. What is the object in the software?
    1. Is a bundle of software that consists of related behaviors and states
    2. Is a defining object of the real world
    3. An object consisting of behavior and state
    4. Objects that are represented in software include 2 data field attributes and data processing methods
  3. Question 3. Which of the following is correct?
    1. public class default {}
    2. protected inner class engine {}
    3. final class outer {}
    4. All is wrong
  4. Question 4. Which of the following is incorrect?
    1. 2word
    2. * word
    3. main
    4. All is wrong
  5. Question 5. How many main methods will there be in a 2-class program?
    1. first
    2. 2
    3. 3
    4. 4
  6. Question 6. How many parent classes can a class in Java have?
    1. first
    2. 2
    3. 3
    4. 4
  7. Question 7. How many subclasses does a class in Java have?
    1. 2
    2. 3
    3. 4
    4. Countless
  8. Question 8. How do I declare Xedap1 class to inherit Xedap class?
    1. class Xedap1 extend Xedap {}
    2. public classs Xedap1 extend Xedap {}
    3. class Xedap1 extends Xedap {}
    4. All is wrong
  9. Question 9. Choosing the best answer What is interface?
    1. A class containing related empty methods
    2. A reference type, similar to a class, can only contain value constants, method declarations and nested types
    3. Is an implementation method of another class
    4. Is the connection layer between the base class and the parent class
  10. Question 10. To use the Xedap interface for class Xedap1, how do we do it?
    1. class Xedap1 implement Xedap {}
    2. public class Xedap1 implement Xedap {}
    3. class Xedap1 implements Xedap {}
    4. public class Xedap1 extends Xedap {}
4.5 ★ | 2 Vote

May be interested

  • eQuiz - Multiple choice test on Java Swing Practice - Part 2eQuiz - Multiple choice test on Java Swing Practice - Part 2
    in the previous article, we introduced you to part 1 of the test of basic java swing knowledge. and below is part 2 of the quiz series with 14 questions, including some questions with many different answer options.
  • Learn about Penetration TestingLearn about Penetration Testing
    penetration testing, also called pen test, is a simulated network attack on a computer system to check for vulnerabilities that can be exploited.
  • What is Java? Why choose Java?What is Java?  Why choose Java?
    what is java? java is a high-level programming language, developed by sun microsystem and released in 1995. java runs on a variety of platforms, such as windows, mac and various versions of unix.
  • 9 things Java programmers should know in 2018 if they want a successful career9 things Java programmers should know in 2018 if they want a successful career
    you want to start the new year in a right direction? join tipsmake.com to consult 9 things java programmers should know in 2018 if you want a successful career!
  • Test on JAVA P10 testTest on JAVA P10 test
    multiple choice questions on java programming help you test your basic knowledge of this programming language. the set of questions includes 10 sentences to try.
  • Test on JAVA test on P9Test on JAVA test on P9
    unlike most common programming languages, instead of compiling the source code into machine code or interpreting source code when running, java is designed to compile the source code into bytecode, then bytecode will be run by the runtime environment. . to help you better understand this programming language, the following quiz of network administrator will give you lots of useful knowledge.
  • Get familiar with NetBeans Java IDEGet familiar with NetBeans Java IDE
    in the following article, we will introduce you the most basic features of netbeans ide through a small test, which is to create the 'hello world' java application. and when finished, you will know the general knowledge and process when programming applications in ide ...
  • JAVA P8 test quizJAVA P8 test quiz
    if you are interested in learning about the java programming language, the following quiz of network administrator will provide you with a lot of useful knowledge for your learning.
  • Basic Java syntaxBasic Java syntax
    a java program can be defined as a collection of objects, communicating through calling each other's procedures. now we will look at the class, object, procedure and instance variable / instance variable to consider their meaning.
  • eQuiz - Multiple choice test on Java Swing PracticeeQuiz - Multiple choice test on Java Swing Practice
    welcome to the test series of tipsmake.com with topics related to the fields of information technology. and this time we will continue with the java swing practice test, a total of 13 questions will be answered with no time to answer each sentence. there will be some questions with many different answer options