• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

Java Basics

How To Get Classpath in Java

February 17, 2023 //  by Krishna Srinivasan//  Leave a Comment

This example demonstrates how to get the classpath string using the Java program. It is simple that you just need to use the System.getProperty() method with the classpath variable name which will return the classpath string. Lets look at the example. Output This is the simple example to get the classpath configuration in your system …

Category: JavaTag: Core Java, Java Basics

java

Array Vs ArrayList in Java

March 3, 2016 //  by Krishna Srinivasan//  Leave a Comment

What is the difference between Array and ArrayList is the quite common question for the Java interview and for the beginners who are learning Java programming. I have started writing the Java best practices series, this is one of the post for clearing the air on misconception about popular Java classes Array and ArrayList. 1. Flexible …

Category: JavaTag: Java Basics

java

How To Use Source and Target Parameter in Java Compiler

February 15, 2016 //  by Krishna Srinivasan//  Leave a Comment

If you are a Java programmer, then one of the common question comes into mind is How do I compile for compatibility with older versions of Java?. When you run your Java  program with an older version of the Java runtime environment, you may get the following Java exception if you have not compiled with the right version of …

Category: JavaTag: Java Basics

java

Difference Between Abstract Class and Interface in Java

February 14, 2016 //  by Krishna Srinivasan//  Leave a Comment

One of the basic Java interview question is what is the difference between abstract class and interface. If you are a beginner in Java, you can not avoid this question in any Java interview to test your knowledge on Java OOPs concepts. In this short tutorial I will write down the difference between abstract class …

Category: JavaTag: Java Basics

java

Suppressed Exceptions in Java 7

November 20, 2015 //  by Krishna Srinivasan//  Leave a Comment

At any point of time only one exception can be thrown by a method per execution. In cases when more than one exception would be thrown from the method, one of them will be suppressed and not thrown by the compiler. This exception is known as the suppressed exceptions in Java. Additional Reading : Java …

Category: JavaTag: Java 7 Exceptions, Java Basics

java

Java Exceptions Tutorial

November 18, 2015 //  by Krishna Srinivasan//  Leave a Comment

In this tutorial I am going to explain Java exceptions in details and how to use them in the real applications. One of the important measure to assess the quality of your Java code is to review the exception handling and how exceptions scenarios are handled. If you have to write an efficient exception handling, …

Category: JavaTag: Java Basics

Downcasting In Java

April 26, 2014 //  by Krishna Srinivasan//  Leave a Comment

Upcasting is assigning the sub class reference object to the parent class which is allowed in Java. Downcasting is assigning parent class reference object to the sub class which is not allowed in Java. However, if you do downcasting, there will not be any compiler error. But, there will be runtime exception java.lang.ClassCastException. Then why …

Category: JavaTag: Java Basics

Static Nested Class In Java

April 26, 2014 //  by Krishna Srinivasan//  Leave a Comment

Static Nested classes are inner classes which are declared inside another class and also declared with static keyword. The main difference between inner class and static nested classes is that inner classes are non-static and static nested classes are static. Also known as static classes. Static nested classes can be accessed using the enclosing class …

Category: JavaTag: Java Basics

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 7
  • Go to Next Page »

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact