Tag: Basics
-
Collection in Java
The Collection in Java is a framework that provides an architecture to store and manipulate the group of objects. Java Collection means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet). What is Collection A Collection represents a single unit…
-
OOPs Scenarios
Scenario 1 Expected Understanding: Access Modifiers, Single Inheritance, getter methods, Constructor Overloading1) Create a Class named “Trainer”.– Have default instance variables String dept, institute– Have private instance variable int salary– Assign 10000 as value for salary.– Create getter method for salary.– Assign values – “Java”, “Payilagam” to them– Have instance method training() with void as…
-
Interface
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types(TBD). Method bodies exist only for…
-
Type Casting
A process of converting one data type to another is known as Typecasting. Object Typecasting can be two types, Upcasting Downcasting What is Upcasting ? When the reference variable of super class refers to the object of subclass, it is known as widening or upcasting in java (or) when the subclass object type is converted…
-
Binding
Binding is a mechanism creating link between method call and method actual implementation (or) Association of method call with the method body is known as binding in Java. There are two types of binding Static Binding (also known as Early Binding). Dynamic Binding (also known as Late Binding). Static Binding or Early Binding The binding which can…
-
Inheritance
The process by which one class acquires the properties(data members) and functionalities(methods) of another class is called inheritance. The aim of inheritance is to provide the reusability of code so that a class has to write only the unique features and rest of the common properties and functionalities can be extended from the another class.…
-
super keyword programs
1. Access Overridden Methods of the superclass If methods with the same name are defined in both superclass and subclass, the method in the subclass overrides the method in the superclass. This is called method overriding. Example 1: Method overriding Example 2:super to Call Superclass Method We use super.display() if the overridden method display() of…
-
Strength of Keywords
super keyword The super keyword refers to superclass (parent) objects. It is used to call superclass methods, and to access the superclass constructor. The most common use of the super keyword is to eliminate the confusion between superclasses and subclasses that have methods with the same name. What is a “super” keyword in Java? Let…
-
KanchiLUG Monthly Meeting 14.08.2022
KanchiLUG (Kanchi Linux User Group) – Monthly meeting on 14 August 2022. People from Linux and FOSS(Free and Open Source Software) Communities, to share their personal knowledge in meeting through Tamil. Initially started at the year 2006. Again initiated with supporters in the year 2009. Before the pandemic events are organized by physical meeting, nowadays…
-
ILUGC Monthly Meeting 13.08.2022
Indian Linux Users Group, Chennai [ ILUGC ] has been spreadingawareness on Free/Open Source Software (F/OSS) in Chennai sinceJanuary 1998. Usually meet on the second Saturday of every month. Month of August, meet through Jitsi on Saturday August 13, 2022 at 3.00 PM List of Speakers Topic: Libreoffice BasicsDescription: Basic comparison between Libreoffice and MS…
-
Libreoffice
LibreOffice is a freely available, fully-featured office productivity suite. Its native file format is Open Document Format (ODF), an open standard format that is being adopted by governments world wide as a required file format for publishing and accepting documents. LibreOffice is an office productivity tool introduced in September 28 2010. The first stable version…
-
Control flow statements
Control flow statements let you control the flow of the execution of the code in your program. You can control the flow of execution of the code by placing the decision making, branching, looping, and adding conditional blocks. Java provides three types of control flow statements. Decision Making statements if statements switch statement[TBD] Loop statements[TBD]…
-
Operators in Java
Operators are used to perform operations on variables and values.It is a symbol that is used to perform operations. For example: +, -, *, / etc. Java supports the following types of operators: Arithmetic Operators Assignment Operators Logical Operators Relational Operators Unary Operators Bitwise Operators Ternary Operators Shift Operators Arithmetic Operators in Java Arithmetic Operators…
-
Class Modifiers
A class may be declared with one or more modifiers which affect its runtime behavior: Access modifiers: public, protected, and private Modifier requiring override: abstract(TBD) Modifier restricting to one instance: static(TBD) Modifier prohibiting value modification: final(TBD) Modifier forcing strict floating point behavior: strictfp(TBD) Annotations(TBD) Modifiers in Java are two types 1) Access Modifiers Access modifiers…
-
Constructors in Java
A constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes. A constructor resembles an instance method in java but it’s not a method as it doesn’t have a return…
-
Method Overloading
If a class has multiple methods having same name but different in parameters, it is known as Method Overloading, java can distinguish between methods with different method signatures. Advantages of using Method Overloading(TBD) Method overloading increases the readability of the program.(TBD) This provides flexibility to programmers so that they can call the same method for…
-
Strength of Keywords
void void is a Java keyword.The void keyword specifies that a method should not have a return value.Used at method declaration and definition to specify that the method does not return any type, the method returns void. In above program, we got the error because void should not have a return value. return The return…
-
Global Vs Local Variables
Global Variables Global variables are those variables that are accessed by the entire program and it is declared at the beginning of the program.However, we have Static variables that are globally declared and is accessible by all method, subclass of a program. Local Variables Local variables are declared inside a method, constructor, or block. These…