Smart Content Search

Find the exact content you need

Search across courses, articles, programs, MCQs, and descriptive questions from your knowledge platform in one clean workspace.

2155

Results Found

21

Current Page

108

Total Pages

Showing 2155 result(s) for your search.

java
Article Result 401

Java Non-Access Modifiers: Usage and Examples

Java Programming Language Packages in java Non Access Modifiers in Java
Access modifiers in Java helps to restrict the scope of a class, constructor , variable , method or data member. There are two types of modifiers in java: Access control modifier Non Access Modifier 1) Access control modifier There are three access modifiers. ...
View Details
/article/read/42/1744
Article Result 402

Java Number Class: Overview and Usage

Java Programming Language Number Class in java Number Class Introduction
Primitive data types are passed by value to methods and cannot be directly passed by reference. Also, there is no way for two methods to refer to the same instance of an int. For that, we will need to create an object representation for one of these primitive ...
View Details
/article/read/42/1746
Article Result 403

Java Operators: Comprehensive Guide and Examples

Java Programming Language Operators in java Operators in Java
Operator in Java Java provides a rich operator environment. An operator is a symbol that tells the computer to perform certain mathematical or logical manipulation. Operators are used in the program to manipulate data and variables. They usually form a part of...
View Details
/article/read/42/1696
Article Result 404

Java Overview

Programming Language Comparing Popular Programming Languages Java Overview
Programming Mastery Java Overview Understand what Java is, why it became popular, where it is used, and how it supports platform-independent, object-oriented, enterprise-level software development. Introduction Java is a high-level, class-based, object-oriente...
View Details
/article/read/8/6062
Article Result 405

Java Packages: Organization and Usage Explained

Java Programming Language Packages in java Package Introduction in Java
What is packages in java Java package is a group of similar types of classes, interfaces and sub-packages or we can say Packages in Java is a mechanism to encapsulate a group of classes, interfaces and sub packages which is used to providing access protection ...
View Details
/article/read/42/1740
Article Result 406

Java parseInt() Method: Usage and Examples

Java Programming Language Number Class in java parseInt() method
Description This method is used to get the primitive data type of a certain String. parseXxx() is a static method and can have one argument or two. Syntax Following are all the variants of this method ? static int parseInt(String s) static int parseInt(String ...
View Details
/article/read/42/1752
Article Result 407

Java Program to Implement a 2D Point Class with Printing and Equality Check

Java Fundamentals: Building Strong Foundations Object-Oriented Programming (OOP) Java Java Program to Implement a 2D Point Class with Printing and Equality Check
Question: Java Program to Represent a 2D Point Task:Write a Java class to represent a 2D point with coordinates (x, y). Your class should be able to: Create a point with given x and y values. Print the coordinates of the point. Compare two points to check if t...
View Details
/article/read/92/3723
Article Result 408

Java Program to Implement a Circle Class

Java Fundamentals: Building Strong Foundations Object-Oriented Programming (OOP) Java Java Program to Implement a Circle Class
Question: Java Program to Implement a Circle Class Task:Write a Java class to represent a circle. Your class should: Store the radius of the circle. Provide a method to display the radius. Provide a method to calculate and display the area of the circle. Provi...
View Details
/article/read/92/3724
Article Result 409

Java Program to Implement a Student Class

Java Fundamentals: Building Strong Foundations Object-Oriented Programming (OOP) Java Java Program to Implement a Student Class
Question: Java Program to Implement a Student Class Task:Write a Java class to represent a student. Your class should: Store student details (like name or roll number, optional). Include a result method that: Takes marks in three subjects as parameters. Calcul...
View Details
/article/read/92/3725
Article Result 410

Java Programming Patterns: Overview and Examples

Java Programming Language Overview of Java Language Programming pattern
Programming Style Note:Java is a freeform language. There are many ways to write a java program. We need not have to indent any lines to make the program work properly. Java system does not care wehere on the line we being typing. Java is a freeform language. ...
View Details
/article/read/42/1679
Article Result 411

Java Relational Operators: Examples and Usage

Java Programming Language Operators in java Relational Operators
Relational (Comparison) Operators These operators are used to compare two values. They return a boolean value (true or false). Operator Description Example == Equal to a == b != Not equal to a != b > Greater than a > b = Greater than or equal to a >= b q) ); S...
View Details
/article/read/42/1698
Article Result 412

Java rint() Method: Usage and Examples

Java Programming Language Number Class in java rint() Method
Description This Java tutorial shows how to use the rint(double a) method of Math class under java.lang package. This method returns the double value that is closest in value to the argument and is equal to a mathematical integer. If two double values that are...
View Details
/article/read/42/1756
Article Result 413

Java round() Method: Usage and Examples

Java Programming Language Number Class in java round() Method in
Description This java tutorial shows how to use the round(float a) method of Math class under java.lang package. This method returns the absolute value of the double method argument. The method round returns the closest long or int, as given by the methods ret...
View Details
/article/read/42/1757
Article Result 414

Java static Block: Definition and Usage

Java Programming Language Inheritance in java static block in Java
Java supports a special block, called static block (also called static clause) which can be used for static initializations of a class. This code inside static block is executed only once: the first time you make an object of that class or the first time you a...
View Details
/article/read/42/1728
Article Result 415

Java static Import: Usage and Examples

Java Programming Language Packages in java static import in Java
static import static import is a feature that expands the capabilities of import keyword. The static import declaration is mimilar to that of import. The static import feature of Java J2SE 5.0 facilitate the java programmer to access any static member of a cla...
View Details
/article/read/42/1742
Article Result 416

Java static Keyword: Definition and Usage Explained

Java Programming Language Class, Object and Methods in java static Keyword in Java
The static keyword is used in java mainly for memory management. It is used with variables, methods, blocks and nested class. It is a keyword that are used for share the same variable or method of a given class. This is used for a constant variable or a method...
View Details
/article/read/42/1722
Article Result 417

Java String Comparison: A Comprehensive Guide

Java Programming Language String in java String comparision in Java
The String class includes several methods that compare strings or substrings within strings. Each is examined here. There are three ways to compare string in java: By equals() method By = = operator By compareTo() method 1) String compare by equals() method Th...
View Details
/article/read/42/1812
Article Result 418

Java String length() Method: Usage and Examples

Java Programming Language StringBuffer Class Methods length() Method
The length of a string is the number of characters that it contains. To obtain the length of a string, call the length( ) method, shown below: Syntax public int length() Parameters No Parameter Specified by length in interface CharSequence Returns Returns the ...
View Details
/article/read/42/1834
Article Result 419

Java StringBuffer: Usage and Examples

Java Programming Language String in java StringBuffer in Java
StringBuffer class is used to create a mutable string object i.e its state can be changed after it is created.The StringBuffer class are used when there is a necessity to make a lot of modifications to Strings of characters. The StringBuilder classe are simila...
View Details
/article/read/42/1832
Article Result 420

Java StringBuilder: Usage and Examples

Java Programming Language String in java StringBuilder in Java
J2SE 1.5 adds a new string class to Java's already powerful string handling capabilities. This new class is called StringBuilder. Java StringBuilder class is used to create mutable (modifiable) string. StringBuilder is identical to StringBuffer except for one ...
View Details
/article/read/42/1833