Core Java Interview Questions with Answers -2 




November 20th, 2007 | by rushi
16. How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the operation. 17. What is the Vector class? The Vector class provides the capability to implement a growable array of objects
18. What modifiers may be used with an inner class that is a member of an outer class? A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
19. What is an Iterator interface? The Iterator interface is used to step through the elements of a Collection.
20. What is the difference between the >> and >>> operators? The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.
21. Which method of the Component class is used to set the position and size of a component? setBounds()
22. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.
23What is the difference between yielding and sleeping? When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
24. Which java.util classes and interfaces support event handling? The EventObject class and the EventListener interface support event processing.
25. Is sizeof a keyword? The sizeof operator is not a keyword.
26. What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
27. Does garbage collection guarantee that a program will not run out of memory? Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection
28. What restrictions are placed on the location of a package statement within a source code file? A package statement must appear as the first line in a source code file (excluding blank lines and comments).
29. Can an object’s finalize() method be invoked while it is reachable? An object’s finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object’s finalize() method may be invoked by other objects.
30. What is the immediate superclass of the Applet class? Panel ——————————————————————————————————- for more interview questions keep visitng my latest blogs. There are many more interiew questions. thanks to all blogger for good resoponse to my blog. I hope u all will always support me. HAppY BlogGing

34 Responses to “Core Java Interview Questions with Answers -2”
By R A M E S H on Nov 30, 1999 | Reply
I’ll go through it later, I’ll definately comment
By Rashmi on Nov 30, 1999 | Reply
Good effort, simplified short questions with answers….I don’t know much about java but my husband is sun certified….I tried to learn but never got around to it……
By Anonymous on Nov 30, 1999 | Reply
Though I am in the Web buz but sorry dear I don’t knowmuch abt scripting languages. However Poll is good.
By Nisha on Nov 20, 2007 | Reply
u ask difficult Question..
By a m hussain on Nov 20, 2007 | Reply
VERY DIFFICULT QUESTIONS. THANKS FOR VISITING.
By Nisha on Nov 21, 2007 | Reply
hey my new post is up…
By Sanket Vora on Nov 21, 2007 | Reply
Yeeeaaaap…. Great friend.. Keep it up
By Sanket Vora on Nov 21, 2007 | Reply
Yeeeaaaap…. Great friend.. Keep it up
By MOIN on Nov 22, 2007 | Reply
Very interesting Rushi Core Java Interview questions with ansers. Thanks for sharing. Five stars to you.
By Idle Mind on Nov 22, 2007 | Reply
A nice post … social work, I guess!!
By a m hussain on Nov 22, 2007 | Reply
NICE POST. THANKS FOR VISITING. COME AGAIN.
By Nisha on Nov 22, 2007 | Reply
Do u know ASP????
By ShreeRadha on Nov 23, 2007 | Reply
Excellent JAVA INFO!
New post is on wise and fool! Do visit!
By Rajib Gurung on Nov 23, 2007 | Reply
Hei rushi visit my new post too.
By Silvia on Nov 23, 2007 | Reply
hiii,nice to meet you…published something new
By a banerji on Nov 26, 2007 | Reply
nice info.
By Nisha on Nov 26, 2007 | Reply
hi there how r u…
By Anonymous on Nov 26, 2007 | Reply
Know the "Power Of Blogging" read at my blog.
Satnam waheguru.
By Sub J on Nov 27, 2007 | Reply
GOOD information…..
By MOIN on Nov 28, 2007 | Reply
Hey Rushi five stars for your nice post. Thanks for sharing
By Sulochana on Dec 1, 2007 | Reply
Good job . Keep it up .
By Chaitanya on Dec 6, 2007 | Reply
this so helpful ,really nice .keep them coming .where to get such questions ? with answers ?
By Suparn@ on Dec 6, 2007 | Reply
Visit my latest post “An Ode to IBIBO” to make a pledge, to transform IBIBO into a platform of Friendship, a platform of Knowledge, a platform of Love. Thanks & Warm regards.
By Sunny Rockz! on Dec 10, 2007 | Reply
nice post do visit my post
By Sunny Rockz! on Dec 15, 2007 | Reply
hi nice post visit my new post for sony ercisson k850i reviews
By Sunny Rockz! on Dec 18, 2007 | Reply
gr8 do visit my new posts
By Sunny Rockz! on Dec 27, 2007 | Reply
nice post do visit my new post NOKIA PRISM review
By Anonymous on Mar 7, 2008 | Reply
nice to see your blog in the most viewed list…
By Anne Joseph on Mar 11, 2008 | Reply
Great Blog. 5* all the way. Visit my blog or my website at http://lakhpati.ws
By Anonymous on Mar 25, 2008 | Reply
Gr8 Blog Dude!!!!!
Hi
Apply for exclusive jobs only at http://www.blog.campus-connect.com !
Have you recently visited http://www.campus-connect.com??
Check out interview questions, fresh job postings and walkin informations.
Download latest placement
By Anonymous on Apr 19, 2008 | Reply
cool list of questions. I know one more place where you can get plenty of java interview questions. The URL is http://www.javaqueries.org
By Anonymous on Apr 26, 2008 | Reply
Ya nice questions..
By Anonymous on Apr 26, 2008 | Reply
Nice stuff around. quite helpful. thanks..