Subscribe Us

Core Java - Interview Questions and Answers

Thia Articles Tutorials Interview Questions & Answers & Sample Chapters Technical Discussions.

1. What is JAVA ?

Java is a pure object oriented programming language, which has derived C syntax and C++ object oriented programming features.
Is a compiled and interpreted language and is platform independent and
Can do graphics, networking, multithreading. It was initially called as OAK.

2. What r the four cornerstones of OOP ?

Abstraction : Can manage complexity through abstraction. Gives the complete overview of a particular task and the details are handled by its derived classes. Ex : Car.
Encapsulation : Nothing but data hiding, like the variables declared under private of a particular class are accessed only in that class and cannot access in any other the class.
Inheritance : Is the process in which one object acquires the properties of another object, ie., derived object.
Polymorphism : One method different forms, ie., method overriding and interfaces are the examples of polymorphism.

3. What are Java Buzzwords ?

Simple : Easy to learn.
Secure : Provided by firewalls between networked applications.
Portable : Can be dynamically downloaded at various platforms connect to internet.
OOP : Four Corner stones.
Multithread : Can perform more than one task concurrently in a single program.
Robust : overcomes problems of de-allocation of memory and exceptions.
Interpreted : Convert into byte code and the executes by JVM.
Distributed : Concept of RMI.
Dynamic : Verifying and accessing objects at run time.

4. What is Java Interpreter ?

It is Java Virtual Machine. ie., a java program compiles the Unicode to intermediary code called as Bytecode which is not an executable code. that is executed by Java interpreter.

5. What is a unicode?

Unicode is a standard that supports International Characters.

6. What are types of Java applications?.

(i) Standalone applications(No browser).
(ii) Applets(Browser).

7. What is the difference between Procedural and OOPs?

A) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOPs program, unit of program is object, which is nothing but combination of data and code.

B) In procedural program,data is exposed to the whole program whereas in OOPs program,it is accessible within the object and which in turn assures the security of the code.

8.What are public static void main(String args[]) and System.out.println() ?

public static void main(String args[])
Public keyword is an access specifier.
Static allows main() to be called without having to instantiate a particular instance of class.
Void does not return any value.
main() is the method where java application begins.
String args[] receives any command line arguments during runtime.
System.out.println()
System is a predefined class that provides access to the system.
out is output stream connected to console.
println displays the output.

9. Define class ?

A class is a one which defines new datatype, and is template of an object, and is a protoype.

10. What is a JAR file?

Jar file allows to efficiently deploying a set of classes and their associated resources. The elements in a jar file are compressed, which makes downloading a Jar file much faster than separately downloading several uncompressed files.
The package java.util.zip contains classes that read and write jar files.






Post a Comment

59 Comments

  1. Superb, what a webpage it is! This webpage presents helpful information to us, keep it up.


    My web site buy android app ratings Buy android app reviews Boost your app position if you buy android app ra...

    ReplyDelete
  2. Simply ѡant to sɑy your article is ɑs astounding. TҺe clearness in your post іs just cool and
    i could assume you're an expert on this subject. Well with your permission
    llet me ttο grab your RSS feed to keep սp tto date with forthcoming post.
    Thanks a million and please keep up tÒºe gratifying work.

    my webpage; aegisenergyservices.com

    ReplyDelete
  3. I'm truly enjoying the design and layout of your website.
    It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did
    you hire out a designer to create your theme? Superb work!


    Check out my web blog ... How To Beat Depression (Http://Www.Streetfire.Net/Profile/Ocean07Flesh.Htm)

    ReplyDelete
  4. Your way of explaining all in this paragraph is truly
    good, all be able to simply know it, Thanks a lot.

    My website ... CHI Straighteners

    ReplyDelete
  5. Wow, this post is pleasant, my younger sister is analyzing these
    kinds of things, therefore I am going to inform her.



    Also visit my site :: What can I actually do about depression

    ReplyDelete
  6. Hello, yup thіs piece of wгiting is in fact nice and I have lеarned lot
    of things from it about blogging. thanks.

    my web sÑ–te :: buy here pay here financing dallas

    ReplyDelete
  7. I absolutely love your website.. Pleasant colors &
    theme. Did you create this site yourself?
    Pleease reply back as I'm attempting to create myy
    own blog and want to know where you got this from or exactly what the theme is called.
    Thanks!

    my web blog; What're some great benefits of beating depression without medication

    ReplyDelete
  8. Very good blog post. I definitely appreciate this site.
    Keepp writing!

    Here is my web page ... self help depression

    ReplyDelete
  9. This design is incredible! You obviously know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more
    than that, how you presented it. Too cool!

    My blog: Beats By Dre Studio

    ReplyDelete
  10. Thank you for some other informative website. Where else may just I get
    that kind of info written in such an ideal way?
    I've a undertaking that I'm simply now running on, and I've been at the look out for such information.

    Feel free to surf to my site - Beats By Dre Cheap

    ReplyDelete
  11. Wow, superb blog layout! How lengthy have you ever been running a blog for?
    you make blogging glance easy. The total look of your web site is fantastic, as smartly as the content
    material!

    Here is my website - GHD Auckland

    ReplyDelete
  12. Thank you for the good writeup. It in truth was once a enjoyment
    account it. Look complex to more delivered agreeable from you!
    By the way, how could we keep in touch?

    Feel free to surf to my web-site - Charlotte Olympia Sale

    ReplyDelete
  13. When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each
    time a comment is added I get several e-mails with the same comment.

    Is there any way you can remove me from that service?
    Bless you!

    my web-site: Louis Vuitton Sale

    ReplyDelete
  14. Keep onn working, great job!

    my ste :: antidepressant medications

    ReplyDelete
  15. Howdy! This blog post couldn't be written any better! Reading through
    this article reminds me of my previous roommate! He continually kept talking
    about this. I'll forward this article to him.

    Fairly certain he will have a great read.
    Many thanks for sharing!

    Also visit my page ... Beats Monster

    ReplyDelete
  16. I want to to thank you for this excellent read!!
    I definitely loved every bit of it. I have got you book-marked to look
    at new things you post…

    Here is my page :: Christian Louboutin Discount

    ReplyDelete
  17. There's definately a great deal to learn about this subject.
    I like all of the points you have made.

    Feel free to visit my blog post :: Cheap Christian Louboutin Shoes

    ReplyDelete
  18. Hi! This is my first visit to your blog! We are
    a collection of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a outstanding job!



    My page; Cheap Louis Vuitton Bags

    ReplyDelete
  19. Good site you have here.. It's difficult to find high-quality writing like yours nowadays.
    I honestly appreciate individuals like you! Take care!!



    Look into my web site - Fake Louis Vuitton Bags

    ReplyDelete
  20. This is very interesting, You're a very skilled blogger.
    I have joined your feed and look forward to seeking more of your fantastic post.
    Also, I have shared your web site in my social networks!


    Also visit my webpage :: Cheap Louis Vuitton Bags

    ReplyDelete
  21. I'm really impressed along with your writing skills and also
    with the structure in your blog. Is this a paid theme or did you modify it your self?
    Anyway keep up the excellent quality writing, it is uncommon to look a great blog like this one nowadays..


    My homepage; Charlotte Olympia Flats

    ReplyDelete
  22. Amazing! This blog looks exactly like my old one! It's on a totally
    different topic but it has pretty much the same layout and design. Wonderful choice of colors!


    Feel free to surf to my page Louis Vuitton Sale

    ReplyDelete
  23. Hi, I do believe this is a great web site. I stumbledupon it ;) I
    am going to come back once again since i have saved as a
    favorite it. Money and freedom is the greatest way to
    change, may you be rich and continue to help other people.


    my web blog Beats By Dre Studio

    ReplyDelete
  24. I like the valuable information you supply for your articles.
    I will bookmark your blog and check again here frequently.
    I'm relatively certain I'll learn lots of new stuff proper right here!
    Good luck for the next!

    my web-site: Cheap Dr Dre Beats

    ReplyDelete
  25. I like what you guys are up too. This kind of clever work and exposure!
    Keep up the excellent works guys I've incorporated you guys to my personal blogroll.



    Feel free to surf to my blog - Christian Louboutin Shoes

    ReplyDelete
  26. An outstanding share! I have just forwarded this onto a colleague who had been conducting a little research on this.
    And he in fact bought me dinner because I stumbled upon it for him...
    lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanks for spending time to talk about this matter here on your internet site.



    my page - CHI Hair

    ReplyDelete
  27. This is really interesting, You are a very skilled blogger.
    I've joined your rss feed and look forward to seeking more of
    your great post. Also, I have shared your web site in my social networks!


    my weblog ... GHD Stockists NZ

    ReplyDelete
  28. Very good information. Lucky me I recently found your website by chance
    (stumbleupon). I have saved it for later!

    Also visit my website: Dr Dre Beats (http://drebeatsuk.s-adv.com)

    ReplyDelete
  29. Good post. I certainly appreciate this website.
    Keep it up!

    My weblog Olympia Shoes

    ReplyDelete
  30. each time i used to read smaller posts which also clear their motive,
    and that is also happening with this post which I
    am reading at this place.

    my webpage; dragon city hack download

    ReplyDelete
  31. Hi there, I log on to your new stuff like every week.

    Your story-telling style is awesome, keep it up!

    Also visit my weblog Louis Vuitton Discount

    ReplyDelete
  32. Very good information. Lucky me I recently found your website by chance (stumbleupon).
    I've book marked it for later!

    Also visit my blog ... CHI Flat Iron

    ReplyDelete
  33. Amazing blog! Is your theme custom made or did you download
    it from somewhere? A design like yours with a few
    simple adjustements would really make my blog stand out.
    Please let me know where you got your design. Appreciate
    it

    my web-site - GHD

    ReplyDelete
  34. This is a topic that's near to my heart... Thank you!
    Where are your contact details though?

    Also visit my web blog - Beats By Dre Studio

    ReplyDelete
  35. These are genuinely enormous ideas in concerning blogging.
    You have touched some pleasant factors here. Any
    way keep up wrinting.

    Stop by my web-site CHI Iron

    ReplyDelete
  36. I think this is among the most significant info for me. And i am glad reading your article.
    But should remark on few general things, The site style is great, the articles
    is really nice : D. Good job, cheers

    Review my web-site :: Beats Monster

    ReplyDelete
  37. Hello there, You have done an excellent job. I will definitely digg it and personally suggest to my friends.
    I am confident they will be benefited from this website.


    Also visit my weblog; GHD NZ

    ReplyDelete
  38. Great work! This is the type of information that are meant to be shared across the internet.
    Disgrace on the search engines for now not positioning this submit
    higher! Come on over and consult with my website .

    Thank you =)

    Also visit my blog post; Beats By Dre Cheap

    ReplyDelete
  39. Excellent beat ! I wish to apprentice while you amend your web
    site, how could i subscribe for a blog website?
    The account helped me a acceptable deal. I had been a little bit acquainted
    of this your broadcast offered bright clear concept

    Feel free to visit my page Christian Louboutin Pumps

    ReplyDelete
  40. Oh my goodness! Awesome article dude! Many thanks, However I am experiencing issues with your RSS.
    I don't know the reason why I cannot subscribe to it.

    Is there anybody else getting identical RSS problems?
    Anybody who knows the answer can you kindly respond?
    Thanx!!

    Take a look at my webpage; Christian Louboutin

    ReplyDelete
  41. Your mode of describing all in this paragraph is actually pleasant, all be able to
    effortlessly be aware of it, Thanks a lot.

    Look into my weblog: Louis Vuitton Outlet Store

    ReplyDelete
  42. Very good blog! Do you have any recommendations for
    aspiring writers? I'm planning to start my own site soon but I'm a little lost on everything.
    Would you recommend starting with a free platform like Wordpress or go for a paid option?
    There are so many options out there that I'm totally confused ..

    Any ideas? Thanks!

    Take a look at my web page; Louis Vuitton Discount

    ReplyDelete
  43. Great delivery. Solid arguments. Keep up the amazing
    work.

    Feel free to visit my site Christian Louboutin Outlet

    ReplyDelete
  44. You ought to be a part of a contest for one
    of the most useful websites on the net. I am going to recommend this site!


    My weblog ... Beats By Dre Solo

    ReplyDelete
  45. I think the admin of this site is in fact working hard for his site, for the reason that here every material is quality based stuff.


    Also visit my web-site: Beats Monster

    ReplyDelete
  46. It's an amazing piece of writing designed for all the web users; they will obtain advantage from it I
    am sure.

    my page ... Beats By Dre Studio

    ReplyDelete
  47. Hi mates, its wonderful post concerning cultureand entirely explained, keep it up
    all the time.

    my webpage :: Dr Dre Headphones

    ReplyDelete
  48. Its like you learn my mind! You seem to know a lot
    about this, like you wrote the e-book in it or something.
    I believe that you could do with some % to pressure the
    message house a bit, but instead of that, that is fantastic
    blog. An excellent read. I will definitely be back.

    Also visit my weblog Louboutin Sale

    ReplyDelete
  49. I would like to thank you for the efforts you have put in writing this blog.
    I really hope to see the same high-grade content from you later on as well.
    In fact, your creative writing abilities has encouraged me to
    get my own website now ;)

    Look into my homepage :: Louboutin Sale

    ReplyDelete
  50. Do you mind if I quote a few of your posts as long as
    I provide credit and sources back to your weblog? My blog is in the very same area of interest as yours and my users would genuinely benefit
    from some of the information you present here. Please let me know if this alright with you.
    Regards!

    Visit my web page Christian Louboutin Boots

    ReplyDelete
  51. Link exchange is nothing else however it
    is just placing the other person's website link on your page
    at proper place and other person will also do similar for you.


    Feel free to surf to my weblog; CHI Hair Products

    ReplyDelete
  52. Excellent article. I absolutely love this website. Continue the good work!


    My web-site: CHI Iron

    ReplyDelete
  53. Very shortly this site will be famous amid all blogging and site-building visitors, due to it's fastidious content

    Also visit my homepage ... Beats By Dr Dre

    ReplyDelete
  54. I'm amazed, I have to admit. Seldom do I come across a blog that's both equally educative and amusing, and without a doubt, you've hit the nail on the head.
    The problem is something that too few folks are speaking intelligently about.
    Now i'm very happy that I came across this in my search for something relating to this.


    Feel free to visit my web site :: Dre Beats Headphones

    ReplyDelete
  55. I do not know if it's just me or if everybody else encountering issues with your site.
    It appears as though some of the text within your posts are running
    off the screen. Can somebody else please provide feedback and let me know if
    this is happening to them too? This could be a issue with
    my internet browser because I've had this happen previously.
    Thank you

    Feel free to surf to my website :: Beats By Dre Headphones

    ReplyDelete
  56. Thanks for another informative web site. Where else may just I get that kind of info written in such an ideal means?
    I have a mission that I'm just now running on, and I have been at the
    glance out for such info.

    my site; Beats By Dre

    ReplyDelete
  57. Thanks for ones marvelous posting! I really enjoyed reading it, you may be a great author.I will
    make certain to bookmark your blog and will come back from now
    on. I want to encourage you to ultimately continue your great posts, have a
    nice evening!

    Also visit my blog post; Christian Louboutin Canada

    ReplyDelete
  58. I used to be able to find good advice from your blog posts.


    Feel free to visit my blog post - Cheap CHI Straighteners

    ReplyDelete
  59. Hi everyone, it's my first visit at this web page, and paragraph is really fruitful in support of me, keep
    up posting such content.

    Here is my weblog; Christian Louboutin UK

    ReplyDelete