1 / 9

Java Interview Questions || Coding Tag

Well organized, easy and frequently asked Java interview Question to learn and regain into your mind Coding tag gives u a well build tutorials with a lot of examples of how where and when To harness your potential with Java resources for new and advanced coders.

Download Presentation

Java Interview Questions || Coding Tag

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JAVA Interview Questions By: Coding Tag

  2. About Us About Coding Tag Coding Tag is the E-learning website covering all tutorials of technical and nontechnical tutorials including advanced programming , web Development,current affairs and Technical interviews.... In Coding tag , It’s the outstanding reference platform for Interview questions as well on :- CSSHTMLPHPSQLCC++OOPSAjaxJSPython etc... In this presentation you will learn about latest frequently asked Interview questions related to Java and Advance Java. More info related toJava Interview questions ‹#›

  3. What are the features in Java? Java Programming Language is a lot more than just a usual programming language It is also a multi-platform,which is with inbuilt security to prevent hacking Here are some features that make java different from other languages: • Robustness nature • Platform Independency • Global operative • No Explicit memory management

  4. Name some of the Java IDE’s. IDE stands for Integrated Development Environment It is an environment that have a lot of classes functions in a single package i.e code editor, compiler, debugger etc… Some IDE’s are: • NetBeans • Eclipse • Intellij IDEA • DrJava

  5. What is the difference between Hashmap and Hashtable. HashMap • No synchronization of methods • Iterator is used to iterate the values • There is no thread safety • HashMap extends an abstract class Abstract Map • Allows null key only once and multiple null values HashTable • Key methods are synchronization • Nothing with null attribute is allowed • Thread safety • The Enumerator is used to iterate the values • Slower performances

  6. How to read text from Inputstream in Java? Java provides several mechanisms in order to read from a file. One important class that helps in performing this operation is the BufferedReader. BufferedReader is a Java class that reads text from the input stream. It buffers the characters so that it can get the efficient reading of characters, arrays, etc. It inherits the reader class and makes the code efficient since we can read the data line-by-line with the readline() method public static void main(String args[] throws Exception) { FileReader f = new FileReader("file location"); BufferedReader b = new BufferedReader(f); while((int i = b.read()) != -1){ System.out.println((char) i); } b.close(); f.close();

  7. Difference between Scanner and BufferedReader. BufferedReader • Synchronous and should be used with multiple threads • Buffer Memory is large • Faster than scanner • Uses buffering to read characters from the character input stream Scanner • Not synchronous and not used with multiple threads • Buffer Memory is smaller • Does parsing of the input data • It is a simple text scanner ,parses strings and primitive types

  8. What is Linked list in Java? In java Linked list class is a doubly linked list implementation of list and Deque interfaces. Linked list Class Declaration, Linked list is a generic class that has this declaration: Public class LinkedList<E> Extends AbstractSequentialList<E> Implements List<E>, Deque<E> ,Cloneable<E>

  9. Thanks! Any questions? You can find me atcodingtag.com

More Related