• Java
    • JAXB Tutorial
      • What is JAXB
      • JAXB Marshalling Example
      • JAXB UnMarshalling Example
  • Spring Tutorial
    • Spring Core Tutorial
    • Spring MVC Tutorial
      • Quick Start
        • Flow Diagram
        • Hello World Example
        • Form Handling Example
      • Handler Mapping
        • BeanNameUrlHandlerMapping
        • ControllerClassNameHandlerMapping
        • SimpleUrlHandlerMapping
      • Validation & Exception Handling
        • Validation+Annotations
        • Validation+ResourceBundle
        • @ExceptionHandler
        • @ControllerAdvice
        • Custom Exception Handling
      • Form Tag Library
        • Textbox Example
        • TextArea Example
        • Password Example
        • Dropdown Box Example
        • Checkboxes Example
        • Radiobuttons Example
        • HiddenValue Example
      • Misc
        • Change Config file name
    • Spring Boot Tutorial
  • Hibernate Tutorial
  • REST Tutorial
    • JAX-RS REST @PathParam Example
    • JAX-RS REST @QueryParam Example
    • JAX-RS REST @DefaultValue Example
    • JAX-RS REST @Context Example
    • JAX-RS REST @MatrixParam Example
    • JAX-RS REST @FormParam Example
    • JAX-RS REST @Produces Example
    • JAX-RS REST @Consumes Example
    • JAX-RS REST @Produces both XML and JSON Example
    • JAX-RS REST @Consumes both XML and JSON Example
  • Miscellaneous
    • JSON Parser
      • Read a JSON file
      • Write JSON object to File
      • Read / Write JSON using GSON
      • Java Object to JSON using JAXB
    • CSV Parser
      • Read / Write CSV file
      • Read/Parse/Write CSV File – OpenCSV
      • Export data into a CSV File
      • CsvToBean and BeanToCsv – OpenCSV

JavaInterviewPoint

Java Development Tutorials

How to count the occurrences of an element in array – Java?

September 2, 2016 by javainterviewpoint Leave a Comment

count the occurrences of an element in an array

Write a program to count the occurrences of an element in an array is one of the basic question which will be asked in a Java Interview. After the introduction of Collection framework performing this operation is a pretty easy task. Let see how we can count the occurrence using HashMap. … [Read more...]

How to Convert Java Object to JSON using JAXB

March 2, 2016 by javainterviewpoint Leave a Comment

In this example we will see how we can convert a Java Object into an JSON using JAXB Marshalling Technique. JAXB Dependency We will be requiring the below jars to be put in the classpath for performing the marshalling operation. jaxb-api.jar org.eclipse.persistence.moxy-2.6.2.jar eclipselink-2.6.2.jar validation-api-1.1.0.Final.jar … [Read more...]

Type Casting in Java – Implicit and Explicit Casting

February 29, 2016 by javainterviewpoint 3 Comments

Java Type Casting - Widening

Type Casting in Java is  nothing but converting a primitive or interface or class in Java into other type. There is a rule in Java Language that classes or interface which shares the same type hierrachy only can be typecasted. If there is no relationship between then Java will throw ClassCastException. Type casting are of two types they are Implicit Casting (Widening) … [Read more...]

For Loop in Java with Example

February 22, 2016 by javainterviewpoint Leave a Comment

For_Loop

For Loop in Java is one of the basic and most used looping statement. It executes a block of statements repeatedly until the condition specified becomes false. In this article we will learn end to end on how to use for loop in Java. … [Read more...]

Top 14 Java Interview Questions on Static keyword

February 17, 2016 by javainterviewpoint 7 Comments

1. What is static keyword in Java? Static is a Non-Access Modifier. Static can be applied to variable, method, nested class and initialization blocks (static block). 2. What is a static variable? A Static variable gets memory allocated only once during the time of class loading. All the instance of the class share the same copy of the variable, a static variable can … [Read more...]

Taking Command Line Arguments in Java

February 12, 2016 by javainterviewpoint Leave a Comment

The command line argument is the argument which is passed at the time of running a Java application. Java can take any number of arguments from the command-line,  You could see that there will be String args[] used in the declaration of the main() method, which tells us that Java can takes all the argument which is passed in the command-line as String, but the question here is … [Read more...]

Object and Object Class in Java

February 3, 2016 by javainterviewpoint Leave a Comment

What is an Object in Java ? We all know that Java is an Object Oriented Programming Language, which entirely rely on Objects and Classes. Any entity which has State and Behavior is known as Object, for example note, pen, bike, book etc. It can be either physical or logical. All the objects should have the below two characteristics State : State represents the bof the … [Read more...]

Parameterized Constructor in Java with Example

January 29, 2016 by javainterviewpoint Leave a Comment

A Constructor which has parameters in it called as Parameterized Constructors, this constructor is used to assign different values for the different objects.  In the below example we have a constructor for the Car class which takes in the the value and sets to the property, lets try to set the value for the property "carColor" … [Read more...]

Java Program to swap two numbers without using third variable

January 18, 2016 by javainterviewpoint Leave a Comment

Swapping of two numbers without the third or temporary variable is one of the most popular interview question asked, most of the freshers failed to solve without the third variable. In this article, lets learn the possible ways to swap two numbers without using third variable … [Read more...]

Java ArrayList contains() Method Example

January 4, 2016 by javainterviewpoint Leave a Comment

The contains() method of java.util.ArrayList class returns true if this list contains the specified element. … [Read more...]

Override toString() method of ArrayList in Java

October 5, 2015 by javainterviewpoint Leave a Comment

When we are working with ArrayList of Objects then it is must that we have to override toString() method of Java ArrayList to get the output in the desired format. Lets learn how to override toString() method. … [Read more...]

Java Constructor.newInstance() method Example

October 2, 2015 by javainterviewpoint 1 Comment

In my previous article we have seen how to use Class.newInstance() method in creating object for class dynamically but there exist a problem the newInstance() method of Class class can invoke only no-arg constructor of the class when a class has parameterized constructors we cannot use newInstance() method of Class class at that place we need to go for the newInstance() method … [Read more...]

  • 1
  • 2
  • 3
  • …
  • 6
  • Next Page »

Java Basics

  • JVM Architecture
  • Object in Java
  • Class in Java
  • How to Set Classpath for Java in Windows
  • Components of JDK
  • Decompiling a class file
  • Use of Class.forName in java
  • Use Class.forName in SQL JDBC

Oops Concepts

  • Inheritance in Java
  • Types of Inheritance in Java
  • Single Inheritance in Java
  • Multiple Inheritance in Java
  • Multilevel Inheritance in Java
  • Hierarchical Inheritance in Java
  • Hybrid Inheritance in Java
  • Polymorphism in Java – Method Overloading and Overriding
  • Types of Polymorphism in java
  • Method Overriding in Java
  • Can we Overload static methods in Java
  • Can we Override static methods in Java
  • Java Constructor Overloading
  • Java Method Overloading Example
  • Encapsulation in Java with Example
  • Constructor in Java
  • Constructor in an Interface?
  • Parameterized Constructor in Java
  • Constructor Chaining with example
  • What is the use of a Private Constructors in Java
  • Interface in Java
  • What is Marker Interface
  • Abstract Class in Java

Java Keywords

  • Java this keyword
  • Java super keyword
  • Final Keyword in Java
  • static Keyword in Java
  • Static Import
  • Transient Keyword

Miscellaneous

  • newInstance() method
  • How does Hashmap works internally in Java
  • Java Ternary operator
  • How System.out.println() really work?
  • Autoboxing and Unboxing Examples
  • Serialization and Deserialization in Java with Example
  • Generate SerialVersionUID in Java
  • How to make a class Immutable in Java
  • Differences betwen HashMap and Hashtable
  • Difference between Enumeration and Iterator ?
  • Difference between fail-fast and fail-safe Iterator
  • Difference Between Interface and Abstract Class in Java
  • Difference between equals() and ==
  • Sort Objects in a ArrayList using Java Comparable Interface
  • Sort Objects in a ArrayList using Java Comparator

Follow

  • Coding Utils

Useful Links

  • Spring 4.1.x Documentation
  • Spring 3.2.x Documentation
  • Spring 2.5.x Documentation
  • Java 6 API
  • Java 7 API
  • Java 8 API
  • Java EE 5 Tutorial
  • Java EE 6 Tutorial
  • Java EE 7 Tutorial
  • Maven Repository
  • Hibernate ORM

About JavaInterviewPoint

javainterviewpoint.com is a tech blog dedicated to all Java/J2EE developers and Web Developers. We publish useful tutorials on Java, J2EE and all latest frameworks.

All examples and tutorials posted here are very well tested in our development environment.

Connect with us on Facebook | Privacy Policy | Sitemap

Copyright ©2023 · Java Interview Point - All Rights Are Reserved ·