Where the CardLayout is used?
Answer / pkr_reddy
card layout is uniq in all other layout managers .
it stores several diff layouts.it is useful to user to
select the optional components that can be dynamically
enabled or disabled.
we can select the layout managers by clicking the
button and we can move from front and bak through index.
| Is This Answer Correct ? | 1 Yes | 3 No |
What is anonymous class?
What is the difference between the paint() and repaint() methods?
What is the use of default method in interface in java?
What happens if constructor is private?
Where import statement is used in a java program?
What is the difference between stream and buffer?
What is complexity in java?
how to print a numbers from 1 to 100 with out using control structures?
What is a finally block? Is there a case when finally will not execute?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
How do you write a conditional statement?