Interview Questions I received in 2017 and 2018

Similar documents
15CS45 : OBJECT ORIENTED CONCEPTS

Learn Java/J2EE Basic to Advance level by Swadeep Mohanty

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

Core Java Syllabus. Overview

JAVA SYLLABUS FOR 6 WEEKS

JAVA MOCK TEST JAVA MOCK TEST IV

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

Page 1

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Java Programming Course Overview. Duration: 35 hours. Price: $900

Core Java Contents. Duration: 25 Hours (1 Month)

A- Core Java Audience Prerequisites Approach Objectives 1. Introduction

LTBP INDUSTRIAL TRAINING INSTITUTE

5/23/2015. Core Java Syllabus. VikRam ShaRma

JAVA. Duration: 2 Months

Collections Questions

Efficient Java (with Stratosphere) Arvid Heise, Large Scale Duplicate Detection

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

Certification In Java Language Course Course Content

Subclass Gist Example: Chess Super Keyword Shadowing Overriding Why? L10 - Polymorphism and Abstract Classes The Four Principles of Object Oriented

CS Internet programming Unit- I Part - A 1 Define Java. 2. What is a Class? 3. What is an Object? 4. What is an Instance?

Peers Techno log ies Pv t. L td. Core Java & Core Java &Adv Adv Java Java

Java SE 7 Programming

20 Most Important Java Programming Interview Questions. Powered by

Aim behind client server architecture Characteristics of client and server Types of architectures

Course Description. Learn To: : Intro to JAVA SE7 and Programming using JAVA SE7. Course Outline ::

Complete Java Contents

Core Java Syllabus DAY -1 :

FOR BEGINNERS 3 MONTHS

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

Java SE7 Fundamentals

CORE JAVA TRAINING COURSE CONTENT

JAVA. 1. Introduction to JAVA

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Java SE 8 Programming

WA1278 Introduction to Java Using Eclipse

Java SE 7 Programming Volume I Student Guide

Java SE 7 Programming

PESIT Bangalore South Campus

Java Interview Questions

Compaq Interview Questions And Answers

Java SE 8 Programming

Training topic: OCPJP (Oracle certified professional Java programmer) or SCJP (Sun certified Java programmer) Content and Objectives

This page intentionally left blank

Java SE 8 Programming

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

ABOUT CORE JAVA COURSE SCOPE:

1 OBJECT-ORIENTED PROGRAMMING 1

Java Programming Training for Experienced Programmers (5 Days)

Index COPYRIGHTED MATERIAL

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

Java Classes. Produced by. Introduction to the Java Programming Language. Eamonn de Leastar

Java Training JAVA. Introduction of Java

A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p.

JAVA+ANDROID CURRICULUM 6 WEEKS. INTRODUCTION TO JAVA Understanding Requirement: Why Java Why Java is important to the Internet JAVA on LINUX Platform

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

Java SE 8 Programmer I and II Syballus( Paper codes : 1z0-808 & 1z0-809)

CS61BL Summer 2013 Midterm 2

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

ΠΙΝΑΚΑΣ ΠΛΑΝΟΥ ΕΚΠΑΙΔΕΥΣΗΣ

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CO Java SE 8: Fundamentals

Course Hours

.NET-6Weeks Project Based Training

CMSC131. Inheritance. Object. When we talked about Object, I mentioned that all Java classes are "built" on top of that.

CISC370: Inheritance

Cloning Enums. Cloning and Enums BIU OOP

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Name of subject: JAVA PROGRAMMING Subject code: Semester: V ASSIGNMENT 1

Today. Book-keeping. Exceptions. Subscribe to sipb-iap-java-students. Collections. Play with problem set 1

INHERITANCE. Spring 2019

CS313D: ADVANCED PROGRAMMING LANGUAGE

Course Outline. [ORACLE PRESS] Kathy Sierra s & Bert Bates OCA/OCP Java 7 Programmer Course for Exam 1Z0-803 and 1Z

Diploma in Microsoft.NET

Object Oriented Programming in Java. Jaanus Pöial, PhD Tallinn, Estonia

Java HashMap Interview Questions

"Charting the Course... Java Programming Language. Course Summary

MCSA Universal Windows Platform. A Success Guide to Prepare- Programming in C# edusum.com

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

Sat 1/6/18 Java Interview Questions over 125 Questions and Answers. source howtodoinjava

Java Programming. Price $ (inc GST)

C# Programming in the.net Framework

DOT NET COURSE BROCHURE

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Java Programming with Eclipse

CS313D: ADVANCED PROGRAMMING LANGUAGE

Index. Index. More information. block statements 66 y 107 Boolean 107 break 55, 68 built-in types 107

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

11 HashMap: Overriding equals ; JUnit; Vistors

Lesson 10B Class Design. By John B. Owen All rights reserved 2011, revised 2014

Review. CSE 143 Java. A Magical Strategy. Hash Function Example. Want to implement Sets of objects Want fast contains( ), add( )

C# Syllabus. MS.NET Framework Introduction

Java Class Design. Eugeny Berkunsky, Computer Science dept., National University of Shipbuilding

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

Microsoft. Microsoft Visual C# Step by Step. John Sharp

AN ISO 9001:2008 CERTIFIED COMPANY ADVANCED. Java TRAINING.

Transcription:

Interview Questions I received in 2017 and 2018 Table of Contents INTERVIEW QUESTIONS I RECEIVED IN 2017 AND 2018... 1 1 OOPS... 3 1. What is the difference between Abstract and Interface in Java8?... 3 2. Does Java8 allow multiple inheritance?... 3 3. What is a Functional Interface in Java8?... 3 4. What is Polymorphism?... 3 5. Is Overriding or Overloading a type of Polymorphism?... 3 6. What is Abstraction?... 3 7. What is Encapsulation?... 3 STRINGS... 3 8. Why is string immutable?... 3 9. What is the difference between String, Stringbuffer and StringBuilder?... 3 10. Strings Literal, New where allocated?... 3 11. Strings == and equals for Literal strings vs New strings and Literal strings vs Literal strings and New strings vs New strings. 4 12.... 3 COLLECTIONS/INTERFACES... 3 13. What is the difference between vector and arraylist?... 3 14. What is the difference between a vector, LinkedList and ArrayList?... 3 15. Why do we need HashMap when we have Hashtable?... 3 16. Create HashMap what do we need to do? Override hashcode and equals.... 3 17. What happens with HashMap collisions? Can set to either overwrite bucket or use Java7 linked list or Java8 tree... 3 18. When to override equals() and hashcode?... 3 19. How to printout Employee object? Override tostring();... 3 20. What is the difference between ArrayList and Vector?... 3 21.... 3 RESTFUL MESSAGING... 3 22. How do you write a Restful message?... 3 23. How do you code a Read or Delete?... 3 MULTITHREADED... 3 24. How do you write multithreaded code?... 3 25. What is the difference between StringBuffer and StringBuilder... 3 26. What can cause a memory leak?... 3 27. What is the difference between a transient and volatile variable?... 4 28. How do you dump thread info in Linux.... 4 29. Best way to protect variable if with few writes and many read threads? Don t want to tie up var because have thousands of read threads.... 4 30. Does Java have semaphores?... 4 31. How do you track the number of threads you have?... 4 32. Have you written Producer Consumer Pattern?... 4 WHITEBOARDING... 4 33. Can you write a Singleton implementation?... 4 34. Write code for a RESTful GET.... 4 35. Write an abstract class... 4 36. Write SQL query to find differences between table 1 and table 2?... 4 37. Write a method to swap two variables without using a temp variable?... 4 MISC... 4 38. What is a class?... 4 39. What is a instance variable?... 4 40. What is a Class or static variable?... 4 41. What is the difference between final, finally and finalize?... 4 42. What is the difference between Comparable and Comparator?... 4 43. What is boxing and unboxing?... 4

44. What is garbage collection?... 4 45. 46. Can you subclass a private class?... 4 What is Serializable?... 4 47. 48. Does Java pass by Reference or Value?... 4 What is a classloader?... 4 49. 50. Name some Functional and Procedural languages?... 5 What is a Functional Interface in Java8?... 5 51. What is a marker interface?... 5 2

3 You can find all the answers to the following questions on this web site. I just wanted to document what interviewer questions I ve faced in the past couple of years. OOPS 1. What is the difference between Abstract and Interface in Java8? 2. Does Java8 allow multiple inheritance? 3. What is a Functional Interface in Java8? 4. What is Polymorphism? 5. Is Overriding or Overloading a type of Polymorphism? 6. What is Abstraction? 7. What is Encapsulation? Strings 8. Why is string immutable? 9. What is the difference between String, Stringbuffer and StringBuilder? 10. Strings Literal, New where allocated? Collections/Interfaces 11. What is the difference between vector and arraylist? 12. What is the difference between a vector, LinkedList and ArrayList? 13. Why do we need HashMap when we have Hashtable? 14. Create HashMap what do we need to do? Override hashcode and equals. 15. What happens with HashMap collisions? Can set to either overwrite bucket or use Java7 linked list or Java8 tree 16. When to override equals() and hashcode? 17. How to printout Employee object? Override tostring(); 18. What is the difference between ArrayList and Vector? Restful Messaging 19. How do you write a Restful message? 20. How do you code a Read or Delete? Multithreaded 21. How do you write multithreaded code? 22. What is the difference between StringBuffer and StringBuilder 23. What can cause a memory leak?

24. What is the difference between a transient and volatile variable? 25. How do you dump thread info in Linux. 26. Best way to protect variable if with few writes and many read threads? Don t want to tie up var because have thousands of read threads. 27. Does Java have semaphores? 28. How do you track the number of threads you have? 29. Have you written Producer Consumer Pattern? Whiteboarding 30. Can you write a Singleton implementation? Yes. I start writing an ENUM implementation and the Credit Suisse VP that was interviewing me said wait that s cheating. Use something else! 31. Write code for a RESTful GET. 32. Write an abstract class 33. Write SQL query to find differences between table 1 and table 2? 34. Write a method to swap two variables without using a temp variable? 35. Literal and New String examples. Are the two Literal Strings == and.equals(). Are the two New Strings == and.equals(). Is the Literal String and New String == and.equals(). 36. Calculate the Fibonacci value for a number X 37. Determine whether or not a given number X is prime 38. Reverse an array without using a loop 39. FizzBuzz Misc 40. What is a class? 41. What is a instance variable? 42. What is a Class or static variable? 43. What is the difference between final, finally and finalize? 44. What is the difference between Comparable and Comparator? 45. What is boxing and unboxing? 46. What is garbage collection? 47. Can you subclass a private class? 48. What is Serializable? 49. Does Java pass by Reference or Value? 50. What is a classloader? 4

51. Name some Functional and Procedural languages? 52. What is a Functional Interface in Java8? 53. What is a marker interface? 54. What are checked and unchecked exceptions? 55. Can I throw and integer? 56. Can I have a try without a catch? 57. Can I override a private method? 58. What is JAR file? JAR files is Java Archive files and it aggregates many files into one. It holds Java classes in a library. JAR files are built on ZIP file format and have.jar file extension. 59. What is a WAR file? This is Web Archive File and used to store XML, java classes, and JavaServer pages. which is used to distribute a collection of JavaServer Pages, Java Servlets, Java classes, XML files, static Web pages etc. 5