0% found this document useful (0 votes)
5 views1 page

Java Functions and Classes Explained

The document provides notes on Java functions, explaining that a function is a block of code that performs a specific task and can return various data types. It highlights the importance of the 'main' function as the entry point of a Java program and discusses the role of classes in organizing related functions. Additionally, it mentions access modifiers and naming conventions in Java programming.

Uploaded by

contactsileshi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Functions and Classes Explained

The document provides notes on Java functions, explaining that a function is a block of code that performs a specific task and can return various data types. It highlights the importance of the 'main' function as the entry point of a Java program and discusses the role of classes in organizing related functions. Additionally, it mentions access modifiers and naming conventions in Java programming.

Uploaded by

contactsileshi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Java Notes

Function's

A function is block of code that performs a task

ReturnType some return a value number, time and date

Void reserve keyword un java

Name name of a function proper discriptive name


() parameter of function is added (value like who is the reciver)
{} the code
{ left brace is added the same line where we define our function }
ever java program should have one function main
main is an entry point to our function
Class container for one or more related functions
Class Main {
Method is a function that is a part of a class
Access modifier is a keyword that determines if other classes and methods and
programs can access this modifier
Pascal Naming Convention
Main class and inside this main class it has

You might also like