Posts

Showing posts with the label LearnWithVaigandla

Variables of Java

Next Java Variables Variables are containers that store information that can be manipulated and referenced later by the programmer within the code. Java variables have a data type associated with them which can tell us about the size and layout of the variable’s memory. datatype variable = value There are three types of comments: Local variable Instance variable Class/static variable Local variable A variable which is declared inside the method is called local variable.Inside the method body, A local variable lies only within the method or constructor within which it is created and other methods in the class cannot access it. Local variable is declared using the static keyword. Example public class LocalVariableEx { public void localVariable() { String name = "Tony"; int ma...

Comments in Java

Next Comments in Java Comments in any programming language are ignored by the compiler or the interpeter. The programmer uses it to either explain a block of code or to avoid the execution of a specific part of the code while testing. There are two types of comments: Single-line comment Multi-line comment Single/In-line comment To write a single-line comment just add a ‘//’ at the start of the line. Example public class Main { public static void main ( String [ ] args ) { //This is a single line comment System . out . println ( "Hello learnwithvaigandla" ) ; } } Output Hello learnwithvaigandla Multi-line comment To write a multi-line comment just add a ‘/*…….*/’ at the start of the line. Exa...

Data types in Java

Image
Next Data types in Java Data types represent the different values to be stored in the variable. There are two forms of Data types in Java Primitive data type Non-primitive data type Data Type Size (in bytes) Range byte 1 -128 to 127 short 2 -32,768 to 32,767 int 4 -2,147,483,648 to 2,147,483,647 long 8 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 float 4 Approximately ±3.40282347E+38F ...

Applications of Java

Next Applications of Java Types of Java Application There are so many types of applications that can be created using Java programming, it gives lot of possibilities when it comes to create applications. In this article we will delve into different types of Java applications, Providing you with valuable insights, functionalities and their uses. Standalone Applications Web Applications Enterprise Applications Mobile Applications Scientific and Numerical Computing Financial Applications Internt of Things(IoT) Big Data Technologies There are mainly 4 type of applications that can be created using java programming: 1.Standalone Applications: Standalone Application is also known as desktop application or window-based application. An application that we need to install on local machin...

A Comprehensive Guide to Java and Its Applications: Exploring the Versatility of Java Programming

Next   What is Java? Java is a Widely-used Programming language for coding web applications. It has been a popular choice among developers, with millions of Java applications in use today. Java is a multi-platform, object-oriented, and network-centric language that can be used as a platfrom in itself. It is fast, secure, reliable programming language for coding everything from mobile application , web applications and standalone applications to enterprise softwares. History of Java Java is an efficient powerful Object-Oriented Programming language developed in the year of 1991 by James Gosling and his team members at Sun micro systems. James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of...