Answers for "java"

PHP
1

Java

Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let application developers write once, run anywhere (WORA),[17] meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.[18] Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code modification) that are typically not available in traditional compiled languages. As of 2019, Java was one of the most popular programming languages in use according to GitHub,[19][20] particularly for client-server web applications, with a reported 9 million developers.[21]
Posted by: Guest on January-29-2021
1

java

System.out.println(something)
Posted by: Guest on December-23-2020
17

java

An incredible language that receives far more hate than it deserves
because of it's poor beginnings.
	Everyone remembers the slow java applets but often fail to understand
Java's many positives including:
 - compatability with many different systems
 - Just-In-Time compilation making it almost as fast as a native language
 - the wide range of high-quality and open source libraries developed over
   many years

	Sure, it may not look as sexy as Python or NodeJS, but when you're
debugging the call stack 50 functions deep, you'll be glad you picked Java
Posted by: Guest on June-12-2020
1

java

const DB_HOST = 'localhost';
const DB_NAME = 'DB_Name';			//Name of the database
const DB_USERNAME = 'username';		//Username to use
const DB_PASSWORD = 'Password';		//Password for that user


// Data Source Name
$dsn = "mysql:host=" . DB_HOST . ";dbname=" . DB_NAME;

$options = [
    PDO::ATTR_EMULATE_PREPARES   => false, // turn off emulation mode for "real" prepared statements
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION, //turn on errors in the form of exceptions
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, //make the default fetch be an anonymous object with column names as properties
];

//Create PDO instance
try {
    $pdo = new PDO($dsn, DB_USERNAME, DB_PASSWORD, $options);
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
}
Posted by: Guest on May-19-2021
-1

java

// Your First Program

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}
Posted by: Guest on December-03-2020
2

java

public class Example {
  public static void main(String[] args) {
  	System.out.println("Hello, world!"); 
  }
}
Posted by: Guest on July-16-2020
0

java

public class Main {
	public static void main(String[] args) {
    	System.out.println("Hello, World!");
    }
}
Posted by: Guest on November-30-2020
200

java

//Head First Java
System.out.println("Knock knock its Java here");
Posted by: Guest on May-22-2021
0

java

efefr
Posted by: Guest on July-16-2021
0

java

this is the best programming language
Posted by: Guest on May-01-2021

Browse Popular Code Answers by Language