Feedback:
http://kundansmiles.tripod.com/comments/My Point || I and Myself || My Gallery || Quotes || TechyNotes
As
myself being a boy of suburbs of southern Jharkhand, it took some time to prepare myself
to get the pace. You cannot expect somebody to change himself totally, mentally or
physically, all at sudden. All those matters are the factors Time and
Will power of the person.
I have done my B.Sc. (Physics Hons.) from highly reputed college, St.
Columba College, Hazaribag(Jharkhand), which was established more than 100 years ago under
Christian Society. The environment of that college and the values learned, from my
respected sirs, seniors, some of my friends and even juniors, during MCA study period at
Regional College of Management, Bhubaneswar (www.rcmindia.org), taught me some very important lessons towards life.
I know it very well that to understand life and the cause of our existence is not an easy matter but yes I can say only that I am trying my best to get me to the true meaning of my name - " Kundan ".
|Top|
Hello,
although its obvious that you might have get an idea of
me through the section "My Point" despite that, let me come close to you and
share my identity with you.
Myself
Kundan Mishra, born at I.G.H., Rourkela on 11.11.1977(Friday), term myself very lucky and
obliged to the supreme God that he blessed me to be son of my parents. I have no
hesitation to accept that as I was the younger in my home so natural was my
Badmaashis, but in response to all the Badmaashis I got back some
logical lessons from my parents (Not always, sometimes bhisuum
J also), so now I hope that you, if know little bit of me, can get the
idea that "Why I am fond of deriving logics behind every event".
From
childhood I liked Cycling and Cricket very much. I took part in many debate competitions,
sports and cultural events; although my school was of a suburb but my Principal sir always
took me to various places with him to take part in such events. Hello nears and dears, I
think now you know Why I love pace and talking?
During my
college time I really came across various forms of values of life, that time I got loads
of lessons from the events. I had to pay for my lack of preparedness, so during that
period I started to believe strongly that Hey cheer-up! The worse is still to
come. So this may be reason if you say me that I always favor Crisis
management.
Thats it; I now think that Life is always there to give you either the test papers or the results. So, be prepared for anything and take it easy.
|Top|
Numero Uno |
Unique Style |
|
|
|Top|
1.Sow an act and you
reap a habit,Sow a habit and you reap a character. Sow a
character and you will reap a destiny.(Charles Reade)
2.Generally
the theories we believe, we call them facts and the facts we disbelieve we call them
theories.
3.If
its painful for you to criticize your friends, you are safe in doing it. If you take
a slightest pleasure in it, thats to hold your tongue.
4.Anybody
can become angry, that is easy.
5.In
prosperity, our friends know us. In adversity we know our friends.
6.The
pessimist sees difficulties in every opportunity, the optimist sees opportunities in every
difficulties.
7.Beware
of prejudice; they are like rats and mans mind are like traps. Prejudices get in
very easily but it is doubtful if they ever get out.
8.To
be capable of steady friendship and lasting love are the two greatest proofs of goodness
of heart and strengths of mind.
9.Nothing
is really over
until you stop trying.
10.Dont undermine your worth by comparing yourself with others.
It is because we are different, that each of us is special.
11.Dont be overjoyed, if Life has gifted something to you, as it might have kept some shocking blow for you. Dont get frustrated, if Life is putting you always in crunch periods, as it might have kept some great gift for you, so ......
ALWAYS
DO THE DUTY.
|Top|
Java
Question 1) Which of the following are legal statements?
1) float f=1/3;
2) int i=1/3;
3) float f=1.01;
4) double d=999d;
1) NULL
2) new
3) instanceOf
4) wend
Question 3) Which of the following are valid statements?
1) System.out.println(1+1);
2) int i=2+'2';
3) c
4) byte b=255;
Question 4) Which of the following statements are true?
1) The garbage collection algorithm in Java is
vendor implemented
2) The size of primitives is platform dependent
3) The default type for a numerical literal with decimal component is a float.
4) You can modify the value in an Instance of the Integer class with the setValue method
Question 5) Which of the following are true statements?
1) I/O in Java can only be performed using the
Listener classes
2) The RandomAccessFile class allows you to move directly to any point a file.
3) The creation of a named instance of the File class creates a matching file in the
underlying operating system only when the close method is called.
4) The characteristics of an instance of the File class such as the directory separator,
depend on the current underlying operating system
Question 6). Which of the following statements are true?
1) The instanceof operator can be used to
determine if a reference is an instance of a class, but not an interface.
2) The instanceof operator can be used to determine if a reference is an instance of a
particular primitive wrapper class
3) The instanceof operator will only determine if a reference is an instance of a class
immediately above in the hierarchy but no further up the inheritance chain
4) The instanceof operator can be used to determine if one reference is of the same class
as another reference thus
Question 7) Which of the following statements are true?
1) An interface can only contain method and not
variables
2) Interfaces cannot have constructors
3) A class may extend only one other class and implement only one interface
4) Interfaces are the Java approach to addressing its lack of multiple inheritance, but
require implementing classes to create the functionality of the Interfaces.
Question 8) Which of the following are valid statements
1) public class MyCalc extends Math
2) Math.max(s);
3) Math.round(9.99,1);
4)Math.mod(4,10);
Question 9) Which of the following are methods of the Runnable interface
1) run
2) start
3) yield
4) stop
Question 10) Which of the following statements are true?
1) A byte can represent between -128 to 127
2) A byte can represent between -127 to 128
3) A byte can represent between -256 to 256
4) A char can represent between -2x2 pow 16 2 x2 pow 16 - 1
Ans: |Top|
Answer to Question 1)
1) float f=1/3;
2) int i=1/3;
4) double d=999d;
The fact that option 3 does not compile may be a surprise. The problem is because the default type for a number with a decimal component is a double and not a float. The additional trailing d in the option with 999 doesn't help, but it doesn't harm.
Answer to Question 2)
2) new
The option NULL (note the upper case letter) is definitely not a keyword. There is some discussion as to if null is a keyword but for the purpose of the exam you should probably assume it is a keywor. The option instanceOf is a bit of a misleading option that would probably not occur on the exam. The real keyword is instanceof (note that the of has no capital letter O). I had the incorrect version in an earlier version of this tutorial as it looks more likely to my eyes. The instanceof keyword looks like a method, but it is actually an operator. The option wend is probably valid in some other language to indicate the end of a while loop, but Java has no such keyword.
Answer to Question 3)
1) System.out.println(1+1);
2) int i=2+'2';
Option 3 is not valid because single quotes are used to indicate a character constant and
not a string. Several people have emailed me to say that option 3 will compile. When they
eventually compiled the exact code they have agreed, it will not compile. Let me re-state
that String s="on"+'one'; Will NOT compile.Option 4 will not compile because 255
is out of the range of a byte
Answer to Question 4)
1) The garbage collection algorithm in Java is vendor implemented Threading and garbage collection are two of the few areas that are platform dependent. This is one of the reasons why Java is not suitable for realtime programming. It is not a good idea use it to control your plane or nuclear power station. Once an instance of the Integer class has a value it cannot be changed.
Answer to Question 5)
2) The RandomAccessFile class allows you to move
directly to any point a file.
4) The characteristics of an instance of the File class such as the directory separator,
depend on the current underlying operating system The File class can be considered to
represent information about a file rather than a real file object. You can create a file
in the underlying operating system by passing an instance of a file to a stream such as
FileOutputStream. The file will be created when you call the close method of the stream. A
Answer to Question 6)
2) The instanceof operator can be used to determine if a reference is an instance of a particular primitive wrapper class.The instanceof operator can only be used to make a static comparison with a class type. Java1.1 added the isInstance method to the class Class to allow you to dynamically determine a class type. The exam does not test you on isInstance.
Answer to Question 7)
2) Interfaces cannot have constructors If you try to create a constructor for an Interface the compiler will give you an error message something like "interface can't have constructors".
4) Interfaces are the Java approach to addressing the single inheritance model, but require implementing classes to create the functionality of the Interfaces. An interface may contain variables as well as methods. However any variables are final by default and must be assigned values on creation. A class can only extend one other class (single inheritance) but may implement as many interfaces as you like (or is sensible).
Answer to Question 8)
None of these are valid statements. The Math class is final and cannot be extended. The max method takes two parameters, round only takes one parameter and there is no mod parameter. You may get questions in the exam that have no apparently correct answer. If you are absolutely sure this is the case, do not check any of the options.
Answer to Question 9)
1) The Runnable interface has only one method run that needs to be created in any class that implements it. The start method is used to actually call and start the run method executing.
Answer to Question 10)
1) A byte can represent between -128 to 127. The char type is the only unsigned type in Java and thus cannot represent a negative number.
NOTE: You can send me any sort of TechyNotes, may be programs, notes or questions, to my mail ID so that I can add them up in my page.
|Top|
My Point || I and Myself || My Gallery || Quotes || TechyNotes
@ Reserved with the owner of this site.