Skip to main content

Posts

Showing posts from December, 2018
Lines 1-6: The most important thing we’ve learned, So far as children are concerned, Is never, NEVER, NEVER let Them near your television set — Or better still, just don’t install The idiotic thing at all. In these lines, Roald Dahl is addressing all British parents and telling them that the most important thing one must learn while raising children is to keep them away from the television set. He also says that it is possible to come to a better solution to the problem by not installing a television set in their homes in the first place. Lines 7-12: In almost every house we’ve been, We’ve watched them gaping at the screen. They loll and slop and lounge about, And stare until their eyes pop out. (Last week in someone’s place we saw A dozen eyeballs on the floor.) In these lines, Dahl speaks as if he has undertaken a long research on the bad effects of watching television by visiting a large number of households in Britain. In most houses, he has found the children lazing

Computer applications icse notes

What is a wrapper class? Give few examples of wrapper classes. Ans. The wrapper class encapsulate or wrap the primitive data-types within a class to form an object representation of it. Examples of wrapper classes 2. What are access specifiers? Ans. Access specifiers are keywords which is used to declare which entity cannot be accessed from where. Its effect has different consequences when used on a class, class member (variable or method),  and  constructor.  J ava offers four access specifiers, listed below in decreasing order of accessibility:   public   protected   default/friendly   private 3.  Name the wrapper class function that converts an integer to a: i ) Binary Number ii) Octal Number iii) Hexadecimal Number Ans.  i )  Integer.toBinaryString (  ) ; ii)  Integer.toOctalString (  ); iii)  Integer.toHexString (  ); 4 . State the difference between parse ...(  ) and  valueOf () method. Ans. The parse ...(  ) method of the wrapper cla
Share Tweet Pin Mail I have tried to list down some of the commonly asked viva questions. Very rarely, but questions can be asked outside of this list. Please note that questions will be based on your program. When you are asked about anything. Answer it to the point. Don’t try and go overboard to show your knowledge and connect it to some other concepts. It won’t fetch you marks but on the contrary, the teacher may question you from that concept as well. For example, if you are asked about the difference between print() and println() function and you reply, “These functions are present in the System class of the java.lang package. The print() functions prints a line and the control remains on the same line, whereas, the println() function prints a line and the control moves on to the next line. If you see this answer, then it looks perfect and shows the knowledge of the student. But it can attract more questions like: Name some other classes of java.lang package. Wha