Inheritance in Java

Inher­i­tance in Java Def­i­n­i­tion- Inher­i­tance in java means take some­thing that is already made. The process of cre­at­ing class to reuse exist­ed class mem­bers using our class name or object is define as inher­i­tance. As name sug­gest inher­i­tance means to take some­thing that is already defined. It is one of the most impor­tant fea­tures of … Read moreInher­i­tance in Java

Java Programming Interview Questions

Inter­view Ques­tions Hi Folks, In today blog i am going to share basic pro­gram­ming inter­view ques­tion on java which inter­view­er ask­ing in cam­pus selec­tion process This is one round of 10 ques­tions i am shar­ing with you. Soon i will post 10 more java pro­gram­ming ques­tions which recent­ly asked in cam­pus inter­view. Pro­gram 1 : Fac­to­r­i­al Pro­gram in Java ? … Read moreJava Pro­gram­ming Inter­view Ques­tions

Groovy Syntax

Pre­req­ui­site — Pre­req­ui­site of this tuto­r­i­al is you should have core java basic knowl­edge because groovy syn­tax are sim­i­lar to Java only. First Pro­gram Using Groovy Syn­tax [cray­on-5bc6c591bc­c67618489618/] Out­put — When you run the above-giv­en pro­gram you will get the fol­low­ing result — Com­ments in groovy — Com­ment is used to doc­u­ment your code. Com­ment … Read moreGroovy Syn­tax

Variable in Java & its types

Def­i­n­i­tion — Vari­able is a named mem­o­ry loca­tion used to store data tem­porar­i­ly. Dur­ing pro­gram exe­cu­tion, we can mod­i­fy the vari­able data. Each vari­able in Java has data types, for more detail on Java data types. How can a vari­able be cre­at­ed- Prim­i­tive Vari­able — These vari­able are cre­at­ed by using prim­i­tive data types. Ref­er­enced Vari­able — These vari­able are cre­at­ed … Read moreVari­able in Java & its types

Data Types & Literals

Hel­lo Guys, data types in Java is one the essen­tial and crit­i­cal idea of java for begin­ners, Here you will real­ize what is a data type, types of the data type both prim­i­tive data types and ref­er­ence data type. Def­i­n­i­tion of data types A data type is some­thing which gives infor­ma­tion about. Size of the mem­o­ry … Read moreData Types & Lit­er­als

Comments, Identifiers, keywords in Java

Hi Guys, Till now you should have a basic under­stand­ing of Java pro­gram­ming in this java tuto­r­i­al you are going learn com­ments iden­ti­fiers key­words in java these con­cepts help anoth­er pro­gram­mer to under­stand your code. Com­ments- A descrip­tion about a basic pro­gram­ming ele­ment is called com­ment. Types of com­ments- Java Sup­ports 3 types of com­ments. 1. Sin­gle line … Read moreCom­ments, Iden­ti­fiers, key­words in Java

Difference between C++ and Java

By the way C++ is also an object-ori­en­t­ed pro­gram­ming lan­guage, just like Java. But there are some impor­tant fea­ture wise dif­fer­ence between c++ and java. Below are Dif­fer­ence between C++ and Java C++ is not pure­ly object-ori­en­t­ed pro­gram­ming lan­guage, Since it is pos­si­ble to to write C++ pro­gram with­out using a class or an object. Java is … Read moreDif­fer­ence between C++ and Java

Binary Search Tree Data Structure

Bina­ry Search Tree : A data struc­ture in which we have nodes con­tain­ing data and two ref­er­ences to oth­er nodes, one on the left and one on the right. Bina­ry Tree con­sist of Nodes Nodes are noth­ing but objects of a class and each node have data and a link to the left node and right node. Usu­ally … Read moreBina­ry Search Tree Data Struc­ture