in Education by
How many copies of static and class variables are created when 10 objects are created of a class? (a) 1, 10 (b) 10, 10 (c) 10, 1 (d) 1, 1 This question was addressed to me by my school principal while I was bunking the class. My question is based upon Access Control topic in section Classes and Methods of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Correct option is (a) 1, 10 The best I can explain: Only one copy of static variables are created when a class is loaded. Each object instantiated has its own copy of instance variables.

Related questions

0 votes
    Which concept of Java is a way of converting real world objects in terms of class? (a) Polymorphism ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these method of class String is used to compare two String objects for their equality? (a) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is used to access a member of class before object of that class is created? (a) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    All the variables of class should be ideally declared as? (a) private (b) public (c) protected (d ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Static members are not inherited to subclass. (a) True (b) False This question was addressed to me ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these cannot be declared static? (a) class (b) object (c) variable (d) method This ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these methods must be made static? (a) main() (b) delete() (c) run() (d) finalize( ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these methods can be used to obtain a static array from an ArrayList object? (a) Array() ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these operators can be used to concatenate two or more String objects? (a) + (b) += ( ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these variables stores the number of hits that are successfully served out of cache? (a) hits ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    How many ports of TCP/IP are reserved for specific protocols? (a) 10 (b) 1024 (c) 2048 (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    How many bits are in a single IP address? (a) 8 (b) 16 (c) 32 (d) 64 I have been ... freshers, java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What is the order of variables in Enum? (a) Ascending order (b) Descending order (c) Random order ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    All the variables of interface should be? (a) default and final (b) default and static (c) public, ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    How many arguments can be passed to main()? (a) Infinite (b) Only 1 (c) System Dependent (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
...