You are here: Home / Topics / Search / java
Showing 19 Search Results for : java

How did I Setup bootstrap css in my Java EE project?

Filed under: Java EE on 2024-03-30 20:48:24
During my setup of java EE project. I faced one problem. I was unable to include bootstrap css in my project. I tried many ways to do this.<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css"/>But it was not being included in my webpages (.jsp pages) so i searched on goo

Classes in Java

Filed under: Java Tutorial on 2024-03-03 20:42:59
In Object-Oriented Programming language, Classes and Objects are the essential building blocks. The “class” keyword is used to declare the class followed by a reference name.Syntax:class Car {//class body}Classes are known as the blueprint of object creation. Classes that are defined by the user

Type Casting in Java

Filed under: Java Tutorial on 2024-03-03 20:36:44
In Java, Type Casting is a process of converting a variable of one data type into another.Type casting can be categorized into two types:Implicit type castingExplicit type castingImplicit typecasting:It is known as widen or automatic type casting. The process to convert a small range data type varia

Primitive Data Types in java

Filed under: Java Tutorial on 2024-03-01 21:08:59
There are eight primitive data types that are supported in Java programming language. These are the fundamental and predefined datatypes of the programming language. Java determines the size of each primitive data type, it cannot be changed. Reserved keywords represent primitive data types.The primi

Understanding Variables in Java

Filed under: Java Tutorial on 2024-03-01 20:50:25
In Java, the variables can be declared to store data in the program for a specific time. In a programming language, few variations are there todeclare a variable. The following program will explain to declare and then initialize an int variable.public static void main(String[] args) {int data1;data1

Variable and Data Type in Java

Filed under: Java Tutorial on 2024-03-01 20:43:00
VariableVariables occupy the memory to store data for a particular time. Data Type A data type is used to identify the size and type of information stored in a variable. Data types help in memory management. It helps to assign thememory depending upon the type of data type. Most importantl

First Program in Java

Filed under: Java Tutorial on 2024-03-01 20:39:53
This Java program has been developed to display the text 'Hello Planet!' onthe console screen.// File-Name: Hello.javapublic class Hello {     public static void main(String[] args) {     // Displaying "Hello Planet!" on the console     System.out.println

what is JDK, JRE, Garbage Collector and Classpath in Java

Filed under: Java Tutorial on 2024-03-01 16:56:07
Java Development Kit (JDK): Overview: The JDK is a comprehensive package for Java development. It encompasses essential components like the compiler, Java Runtime Environment (JRE), Java debuggers, documentation, and more. To write, compile, and run Java programs, it's imperative to install the

Program for Sum of 2D array elements in Java

Filed under: Java on 2023-08-23 06:48:23
// Sum Of Array Elementspublic class SumOfArrayElements{   public static void main(String[] args) {       int i, j, sum = 0;       int a[][] = {{10, 20, 30}, {40, 50, 60}, {70, 80, 90}};       for (i = 0; i < 3; i++) {  &n

What do you understand by classes in java?

Filed under: JAVA Interview Questions on 2022-07-02 16:09:45
In Java, a class is a user-defined data type from which objects are created. It can also be called as a blueprint or prototype. A class is a collection of various methods and variables which represent a set of properties that are common to all the objects of one type. A class includes components suc

What do you mean by an object in java?

Filed under: JAVA Interview Questions on 2022-07-02 16:09:28
An object is a basic entity in an object-oriented programming language that represents the real-life entities. Many objects are created by a java program that interacts with the invoking methods. The state of an object is represented by its attributes and reflects its properties. The behavior of an 

Compare java and python.

Filed under: JAVA Interview Questions on 2022-07-02 16:09:13
Java and Python, both the languages hold an important place in today’s IT industry. But in some factors, one is better than the other. Such factors are:Java is easy to use, whereas Python is very good in this case.The speed of coding in Java is average, whereas in Python it is excellent.In Java, t

Outline the major features of Java.

Filed under: JAVA Interview Questions on 2022-07-02 16:08:52
The major features of Java are listed below: –Object-oriented: – Java language is based on object-oriented programming. In this, the class and the methods describe the state and behavior of an object. The programming is done by relating a problem with the real world object.Portable: – the conv

Looping in JAVA and Types of Loops in JAVA

Filed under: JAVA Interview Questions on 2022-07-02 16:08:18
If we want to execute a statement or a block of statements repeatedly in java, then loops are used. And such a process is known as looping. There are basically 3 types of looping. They are: –"For loop": – for executing a statement or a set of statements for a given number of times, for loops are

What are the various access specifiers in Java?

Filed under: JAVA Interview Questions on 2022-07-02 16:07:16
Access specifiers in java are the keywords which define the access scope of the function. It can be used before a class or a method. There are basically 4 types of access specifiers in java: –Public: – class, methods, and fields are accessible from anywhere.Protected: – methods and fields are 

What is the difference between JDK, JRE, and JVM?

Filed under: JAVA Interview Questions on 2022-07-02 16:06:54
It is important to understand the difference between JDK, JRE, and JVM in Java.JVM (Java Virtual Machine):  Java virtual machine is actually an abstract machine which provides a runtime environment in which the java bytecode gets executed. A JVM performs some main tasks such as- loading, verify

What is the need of the JAVA?

Filed under: JAVA Interview Questions on 2022-07-02 16:05:12
The need of Java is that it enforces an object-oriented programming model and can be used to create complete applications that can run on a single computer or be distributed across servers and clients in a network thus it can easily build mobile applications or run on desktop applications that use d