Java.io.File Class in Java The File class is Java’s representation of a file or directory path name. Because file and directory names have different formats on different platforms, a simple string is not adequate to name them. The File class contains several methods for working with the path name, deleting and renaming files, creating new …
Continue reading File Handling in JavaUncategorized
An array is a collection of similar data types. Array is a container object that hold values of homogeneous type. It is also known as static data structure because size of an array must be specified at the time of its declaration. Array starts from zero index and goes to n-1 where n is length …
Continue reading Java ArraysA Wrapper class is a class whose object wraps or contains primitive data types. When we create an object to a wrapper class, it contains a field and in this field, we can store primitive data types. In other words, we can wrap a primitive value into a wrapper class object. Need of Wrapper Classes …
Continue reading Wrapper Classes in JavaString Handling What is difference between String and StringBuffer String is immutable that object created for one string and on concatenating with that string it will not add with that string or it create new object with concatenation and StringBuffer is mutable that it appends with created string Strings in Java are Objects that are …
Continue reading String handling in javaOOPs concepts in Java Object-oriented programming System(OOPs) is a programming paradigm based on the concept of “objects” that contain data and methods. The primary purpose of object-oriented programming is to increase the flexibility and maintainability of programs. Object oriented programming brings together data and its behaviour(methods) in a single location(object) makes it easier to understand …
Continue reading Java OopsIf, If..else Statement in Java with Examples When we need to execute a set of statements based on a condition then we need to use control flow statements four types of control statements that you can use in java programs based on the requirement a) if statement b) nested if statement c) if-else statement d) …
Continue reading Conditional LoopIntroduction Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995. James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, so James Gosling and his team changed the Oak name to Java. History of Java …
Continue reading Java OverviewObject-Oriented Programming Object-oriented programming is a programming paradigm that provides a means of structuring programs so that properties and behaviors are bundled into individual objects. For instance, an object could represent a person with properties like a name, age, and address and behaviors such as walking, talking, breathing, and running. Or it could represent an …
Continue reading Oops in PythonPython Numbers, Type Conversion and Mathematics Number Data Type in Python Python supports integers, floating-point numbers and complex numbers. They are defined as int, float, and complex classes in Python. Integers and floating points are separated by the presence or absence of a decimal point. For instance, 5 is an integer whereas 5.0 is a …
Continue reading Python DatatypeWhat is a function in Python? In Python, a function is a group of related statements that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable. Syntax …
Continue reading Python Functions